已安装内核:
$jupyter-kernelspec list
Available kernels:
apache_toree_scala /usr/local/share/jupyter/kernels/apache_toree_scala
apache_toree_sql /usr/local/share/jupyter/kernels/apache_toree_sql
pyspark3kernel /usr/local/share/jupyter/kernels/pyspark3kernel
pysparkkernel /usr/local/share/jupyter/kernels/pysparkkernel
python3 /usr/local/share/jupyter/kernels/python3
sparkkernel /usr/local/share/jupyter/kernels/sparkkernel
sparkrkernel /usr/local/share/jupyter/kernels/sparkrkernel
已创建一个新笔记本,但失败
The code failed because of a fatal error:
Error sending http request and maximum retry encountered..
jupyter
控制台中没有[错误]消息
答案 0 :(得分:1)
如果您使用magicspark
连接Jupiter笔记本,则还应该启动Livy,这是magicspark用于与Spark集群通信的API服务。
Livy
并解压缩<livy_home>/bin/livy-server
在shell /命令行中运行Livy服务器现在回到笔记本,您应该能够在单元格中运行Spark代码。