我在我的 Ubuntu 16.04 系统中使用以下命令安装了 toree:
$ pip install --pre toree
$ jupyter toree install --interpreters=Scala,PySpark,SQL
然后我检查了内核列表。我成功安装了内核:
$ jupyter kernelspec list
Available kernels:
python3 /home/ypdx/programs/anaconda3/lib/python3.5/site-packages/ipykernel/resources
apache_toree_pyspark /usr/local/share/jupyter/kernels/apache_toree_pyspark
apache_toree_scala /usr/local/share/jupyter/kernels/apache_toree_scala
apache_toree_sql /usr/local/share/jupyter/kernels/apache_toree_sql
然后我启动 jupyter,问题来了:当我使用该内核创建新笔记本时,apache_toree_scala 和 apache_toree_pyspark 内核都会在错误“超时”中运行。这是错误消息:
Timeout waiting for kernel_info reply from d98705f0-4bba-4c69-af7f-da99379219f5
我的 ubuntu 安装在 VirtualBox 中。但我认为这应该不是问题。