Unable to build and compile Toree

I get errors when running make dev and make release and make jupyter in the torus when creating from the wizard.

My machine is Ubuntu 16.04

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

when I run make release in the root of toree I get

 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 

I installed java via apt-get install default-jdk

 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# 

I have docker installed

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

You do not need to create and compile Toree, as it has already created the built-in package.

Toree's demo shots are at https://dist.apache.org/repos/dist/dev/incubator/toree . To install using one of these packages, you can use the following:

 pip install <PIP_RELEASE_URL> jupyter toree install 

where PIP_RELEASE_URL is one of the pip packages. For instance:

 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
source

Source: https://habr.com/ru/post/1012497/


All Articles