2017-10-14 112 views
0
OS X El Capitan 10.11.6 
Spark 2.2.0 (local) 
Scala 2.11.8 

我使用Jupyter通过我的安装anaconda3。我的理解是,Toree的最新量产版本不支持Spark 2.0+或Scala 11.但是我发现了几个参考文献(12),您可以从github中克隆incubator-toree并手动设置版本SparkToree Jupyter for Spark 2.2.0

在我的Mac终端,这是我使用的代码:

git clone https://github.com/apache/incubator-toree 
cd incubator-toree 

于是,线路make clean release APACHE_SPARK_VERSION=2.2.0给了我以下错误:

rm -r dist 
rm: dist: No such file or directory 
make: [clean-dist] Error 1 (ignored) 
APACHE_SPARK_VERSION=2.2.0 VERSION=0.2.0.dev1-incubating IS_SNAPSHOT=true sbt clean 
/bin/sh: sbt: command not found 
make: *** [clean] Error 127 

我四处寻找指引这个错误。

+0

'SBT:命令不found' ...你没有打扰安装'sbt' , 你是否? –

回答

2

使用开发快照安装运行下面的命令

pip install https://dist.apache.org/repos/dist/dev/incubator/toree/0.2.0/snapshots/dev1/toree-pip/toree-0.2.0.dev1.tar.gz 

此版本支持火花2.2.0

+0

如果您遇到该网址超时,请尝试此[Toree](https://anaconda.org/hyoon/toree)。这对我有用。 – jyu

+0

@ashwinids @jyu你有没有在Jupyter中用这个内核运行基本的Spark Scala命令有困难?简单的事情,如'.toDF'和'$“columnName”'抛出错误。 – bshelt141