2016-11-22 112 views
0

我在從master進行構建時在運行make devmake releasemake jupyter時遇到錯誤。無法編譯和編譯Toree

我的機器是Ubuntu的16.04

[email protected]:/home/incubator-toree# uname -r 
4.4.0-47-generic 

在toree根運行make release當我得到

[email protected]:/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 
[email protected]:/home/incubator-toree# 

make jupyter

[email protected]:/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
[email protected]:/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) 
[email protected]:/home/incubator-toree# 

make release

[email protected]:/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 
[email protected]:/home/incubator-toree# 

我有泊塢窗安裝

[email protected]:/home/incubator-toree# docker -v 
Docker version 1.12.3, build 6b644ec 
+0

您是否嘗試過使用Oracle JDK進行此操作? –

+0

嗨Viktor,我設法讓它工作到最後。必須編譯成一個包並用pip – Ming

+0

安裝好消息,恭喜! –

回答

0

你並不需要建立和編譯Toree,因爲它已經提供了一個內部封裝。

Toree的開發快照位於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