简体   繁体   中英

404:Not Found error when running Jupyter Notebooks on Microsoft Azure HDInsight 3.5

I have deployed a HDInsight 3.5 Spark (2.0) cluster on Microsoft Azure with the standard configurations (Location = US East, Head Nodes = D12 v2 (x2), Worker Nodes = D4 v2 (x4)). When the cluster is running, I click Jupyter Notebook in "Cluster Dashboards" quick link. After entering my username and password in the prompt, I receive a page giving me a 404: Not Found page. More specific the the following (json) message is shown:

{ "status": 404, "message": "Not Found" }

(This is in Google Chrome. In Internet page a similar, but differently looking, page 404 error page is shown.)

Cloud somebody help me with this error?

There's an undergoing issue preventing from Jupyter to work as expected out of the box on HDInsight at the moment. You can still use other deployment methods until this is resolved.

Edit: For example, you can run Jupyter locally and connect to the HDI cluster in Azure. See https://github.com/jupyter-incubator/sparkmagic/blob/master/README.md#installation and https://docs.microsoft.com/en-us/azure/hdinsight/hdinsight-apache-spark-jupyter-notebook-install-locally

Update: Issue was fixed

Running the following via SSH will solve the issue:

echo "c.NotebookApp.token = ''" | sudo tee --append /var/lib/.jupyter/jupyter_notebook_config.py > /dev/null
sudo pkill -f jupyter-notebook

It fixes the config file and then kills the jupyter process. Ambari will then take a minute or so to notice that Jupyter is no longer running and restart the service, which will pick up the new config.

These commands are being run on live clusters at the moment to fix the bug.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM