无法构建和编译Toree

时间:2016-11-22 01:04:45

标签: java ubuntu apache-spark jupyter-notebook apache-toree

在使用master构建时,我在运行make devmake release以及make jupyter时遇到错误。

我的机器是Ubuntu 16.04

root@ubuntu-2gb-sgp1-01:/home/incubator-toree# uname -r
4.4.0-47-generic

在toree root中运行make release时我得到了

root@ubuntu-2gb-sgp1-01:/home/incubator-toree# make release
APACHE_SPARK_VERSION=2.0.0 VERSION=0.2.0.dev1-incubating IS_SNAPSHOT=true sbt toree/assembly
Unrecognized VM option 'MaxPermSize=1024M'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Makefile:110: recipe for target 'target/scala-2.11/toree-assembly-0.2.0.dev1-incubating-SNAPSHOT.jar' failed
make: *** [target/scala-2.11/toree-assembly-0.2.0.dev1-incubating-SNAPSHOT.jar] Error 1
root@ubuntu-2gb-sgp1-01:/home/incubator-toree#

make jupyter

root@ubuntu-2gb-sgp1-01:/home/incubator-toree# make jupyter
APACHE_SPARK_VERSION=2.0.0 VERSION=0.2.0.dev1-incubating IS_SNAPSHOT=true sbt toree/assembly
Unrecognized VM option 'MaxPermSize=1024M'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Makefile:110: recipe for target 'target/scala-2.11/toree-assembly-0.2.0.dev1-incubating-SNAPSHOT.jar' failed
make: *** [target/scala-2.11/toree-assembly-0.2.0.dev1-incubating-SNAPSHOT.jar] Error 1

我通过apt-get install default-jdk

安装了java
root@ubuntu-2gb-sgp1-01:/home/incubator-toree# java -version
openjdk version "9-internal"
OpenJDK Runtime Environment (build 9-internal+0-2016-04-14-195246.buildd.src)
OpenJDK 64-Bit Server VM (build 9-internal+0-2016-04-14-195246.buildd.src, mixed mode)
root@ubuntu-2gb-sgp1-01:/home/incubator-toree#

make release

root@ubuntu-2gb-sgp1-01:/home/incubator-toree# make release
APACHE_SPARK_VERSION=2.0.0 VERSION=0.2.0.dev1-incubating IS_SNAPSHOT=true sbt toree/assembly
Unrecognized VM option 'MaxPermSize=1024M'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Makefile:110: recipe for target 'target/scala-2.11/toree-assembly-0.2.0.dev1-incubating-SNAPSHOT.jar' failed
make: *** [target/scala-2.11/toree-assembly-0.2.0.dev1-incubating-SNAPSHOT.jar] Error 1
root@ubuntu-2gb-sgp1-01:/home/incubator-toree#

我安装了docker

root@ubuntu-2gb-sgp1-01:/home/incubator-toree# docker -v
Docker version 1.12.3, build 6b644ec

1 个答案:

答案 0 :(得分:0)

你不需要构建和编译Toree,因为它已经提供了一个构建的包。

Toree的Dev快照位于https://dist.apache.org/repos/dist/dev/incubator/toree。要使用其中一个软件包进行安装,您可以使用以下软件:

pip install <PIP_RELEASE_URL>

jupyter toree install

其中PIP_RELEASE_URL是其中一个pip包。例如:

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
jupyter toree install --spark_home=$SPARK_HOME