MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.26k stars 21.43k forks source link

Error sending http request and maximum retry encountered.. #24118

Closed pacuna closed 5 years ago

pacuna commented 5 years ago

I just launched a new cluster using the defaults (6 vm's in total) and every time I try to run a command in a Jupyter Notebook I get:

The code failed because of a fatal error:
    Error sending http request and maximum retry encountered..

Some things to try:
a) Make sure Spark has enough available resources for Jupyter to create a Spark context. For instructions on how to assign resources see http://go.microsoft.com/fwlink/?LinkId=717038
b) Contact your cluster administrator to make sure the Spark magics library is configured correctly.

I deleted the cluster, launched a new one and the issue persists.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

CHEEKATLAPRADEEP-MSFT-zz commented 5 years ago

@pacuna Thanks for reporting this issue. We are actively investigating and will get back to you soon.

CHEEKATLAPRADEEP-MSFT-zz commented 5 years ago

@pacuna I’m able to run Spark SQL Statements without any issues after starting Livy for spark2 from Ambari home tab.

In Azure Portal => Go to Ambari home => On the left side click on Jupyter => Make sure Livy for Spark2 is started.

image

After starting Livy for Spark2: Started.

image

I’m able to run Spark SQL Statements without any error message.

image

Hope this helps.

pacuna commented 5 years ago

@CHEEKATLAPRADEEP-MSFT that's probably the issue. This doc doesn't mentioned anything about starting the livy service, that's why I wasn't aware. Thanks!