小编Mic*_*man的帖子

jupyter throw错误:socket.gaierror:[Errno -2]名称或服务未知

我在AWS EMR上运行了一个pyspark集群,并将Jupyter用于pyspark驱动程序.最近,脚本失败了.Jupiter无法启动服务器.我安装conda install jupyter并开始sudo initctl start jupyter.集群运行正常.以下是服务器的配置值.

# jupyter configs
mkdir -p ~/.jupyter
touch ls ~/.jupyter/jupyter_notebook_config.py
HASHED_PASSWORD=$(python -c "from notebook.auth import passwd; 
print(passwd('$JUPYTER_PASSWORD'))")
echo "c.NotebookApp.password = u'$HASHED_PASSWORD'" >> ~/.jupyter/jupyter_notebook_config.py
echo "c.NotebookApp.open_browser = False" >> ~/.jupyter/jupyter_notebook_config.py
echo "c.NotebookApp.ip = '*'" >> ~/.jupyter/jupyter_notebook_config.py
echo "c.NotebookApp.notebook_dir = '/mnt/$BUCKET/$FOLDER'" >> ~/.jupyter/jupyter_notebook_config.py
echo "c.ContentsManager.checkpoints_kwargs = {'root_dir': '.checkpoints'}" >> ~/.jupyter/jupyter_notebook_config.py
echo "c.NotebookApp.port = 8080" >> ~/.jupyter/jupyter_notebook_config.py
Run Code Online (Sandbox Code Playgroud)

python pyspark jupyter jupyter-notebook

13
推荐指数
1
解决办法
5919
查看次数

标签 统计

jupyter ×1

jupyter-notebook ×1

pyspark ×1

python ×1