【发布时间】:2016-05-21 01:37:59
【问题描述】:
我已按照 EMR 页面上的步骤启动了一个 AWS EMR 集群。通过 SSH(Windows 7 中的 putty)连接并启用 foxyproxy(Chrome)后,它启动良好,可以在我的笔记本电脑浏览器中访问。 Pyspark 和 sparkR 附带 EMR Spark 1.6.0 安装并在终端中完美运行。 Hue 等的端口以下列格式正常工作:
ec2-xx-xxx-xxx-xxx.us-west-2.compute.amazonaws.com:/
我按照http://jupyter.readthedocs.org/en/latest/install.html#using-pip 上的步骤安装了 Jupyter
sudo pip install jupyter
我用
打开了一个新笔记本jupyter notebook
它在我关闭的终端中打开了一个浏览器。它给出了以下输出:
[I 14:32:12.001 NotebookApp] Writing notebook server cookie secret to /home/hadoop/.local/share/jupyter/runtime/notebook_cookie_secret
[I 14:32:12.033 NotebookApp] The port 8888 is already in use, trying another random port.
[I 14:32:12.037 NotebookApp] Serving notebooks from local directory: /home/hadoop
[I 14:32:12.037 NotebookApp] 0 active kernels
[I 14:32:12.038 NotebookApp] The Jupyter Notebook is running at: http://localhost:8889/
[I 14:32:12.038 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
我尝试通过以下方式在浏览器中访问它: 本地主机:8889/
(当然没用)
然后通过: ec2-xx-xxx-xxx-xxx.us-west-2.compute.amazonaws.com:8889/
(替换 x),但这也给出了错误。
This webpage is not available
ERR_CONNECTION_RESET
那么,当 Jupyter 安装在 EMR 集群的头节点上后,如何在本地浏览器中访问它?
【问题讨论】:
标签: python amazon-web-services amazon-ec2 emr jupyter