• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

无法编译和编译Toree

java 来源:Ming 12次浏览

我在从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 


===========解决方案如下:

你并不需要建立和编译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 

版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)