huy*_*uye 4 python kernel apache-spark jupyter jupyter-notebook
[I 10:43:53.627 NotebookApp] \xe5\x90\xaf\xe5\x8a\xa8notebooks \xe5\x9c\xa8\xe6\x9c\xac\xe5\x9c\xb0\xe8\xb7\xaf\xe5\xbe\x84: /opt/soft/recommender/jupyter\n\n[I 10:43:53.627 NotebookApp] \xe6\x9c\xac\xe7\xa8\x8b\xe5\xba\x8f\xe8\xbf\x90\xe8\xa1\x8c\xe5\x9c\xa8: http://10.48.204.120:8888/\n\n[I 10:43:53.627 NotebookApp] \xe4\xbd\xbf\xe7\x94\xa8control-c\xe5\x81\x9c\xe6\xad\xa2\xe6\xad\xa4\xe6\x9c\x8d\xe5\x8a\xa1\xe5\x99\xa8\xe5\xb9\xb6\xe5\x85\xb3\xe9\x97\xad\xe6\x89\x80\xe6\x9c\x89\xe5\x86\x85\xe6\xa0\xb8(\xe4\xb8\xa4\xe6\xac\xa1\xe8\xb7\xb3\xe8\xbf\x87\xe7\xa1\xae\xe8\xae\xa4).\n\n[W 10:43:53.628 NotebookApp] \xe6\xb2\xa1\xe6\x9c\x89\xe6\x89\xbe\xe5\x88\xb0web\xe6\xb5\x8f\xe8\xa7\x88\xe5\x99\xa8: could not locate runnable browser.\n\n[I 10:44:11.697 NotebookApp] Kernel started: 7ea0717b-b85b-44b1-bd10-7a2079b24d94\n\n[I 10:44:11.708 NotebookApp] 302 GET /notebooks/doc/source/images/als-diagram.png (10.252.183.252) 6.63ms\n\n[I 10:44:14.691 NotebookApp] KernelRestarter: restarting kernel (1/5), new random ports\n\n[I 10:44:17.719 NotebookApp] KernelRestarter: restarting kernel (2/5), new random ports\n\n[I 10:44:20.746 NotebookApp] KernelRestarter: restarting kernel (3/5), new random ports\n\n[I 10:44:23.774 NotebookApp] KernelRestarter: restarting kernel (4/5), new random ports\n\n[W 10:44:26.800 NotebookApp] KernelRestarter: restart failed\n\n[W 10:44:26.801 NotebookApp] Kernel 7ea0717b-b85b-44b1-bd10-7a2079b24d94 died, removing from map.\n\n[W 10:45:11.836 NotebookApp] Timeout waiting for kernel_info reply from 7ea0717b-b85b-44b1-bd10-7a2079b24d94\n\n[E 10:45:11.839 NotebookApp] Error opening stream: HTTP 404: Not Found (Kernel does not exist: 7ea0717b-b85b-44b1-bd10-7a2079b24d94)\n\n[I 10:46:11.948 NotebookApp] Saving file at /notebooks/elasticsearch-spark-recommender.ipynb\nRun Code Online (Sandbox Code Playgroud)\n\n我正在尝试通过 pyspark 启动 jupyter 笔记本,使用命令:
\n\nPYSPARK_DRIVER_PYTHON="jupyter" PYSPARK_DRIVER_PYTHON_OPTS="notebook"\n../spark-2.2.0-bin-hadoop2.7/bin/pyspark --driver-memory 4g --driver-class-path /opt/soft/recommender/spark/elasticsearch-hadoop-5.3.0/dist/elasticsearch-spark-20_2.11-5.3.0.jar\nRun Code Online (Sandbox Code Playgroud)\n\n我可以通过远程浏览器打开jupyter,但是由于内核重启失败,我无法通过jupyter运行python demo。
\n\npython版本是3.5.0。Jupyter 和 ipykernel 都是最新的。prompt-toolkit版本是1.0.15。
如果我将prompt-toolkit版本更新到 2.0.4,那么启动 pyspark 会抛出很多错误消息。
我该如何修复它?
\n小智 7
这篇文章解决了我的情况。 Jupyter-notebook报错KernelRestarter: restart failed或者“kernel running,please wait”
基本上,卸载文章中列出的所有软件包并重新安装 jupyter 和笔记本
pip uninstall -y ipykernel ipython jupyter_client jupyter_core traitlets ipython_genutils jupyter notebook tornado
pip install jupyter notebook
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
19385 次 |
| 最近记录: |