cd C:\v\IdeaProjects\scalatest\docker docker-compose up -d
docker commit zeppelinForDev zeppelin-for-dev:latest
CAUTION: Zeppelin on Windows is not supported any more. Zeppelin starts, but does not really work. So, it would be better to use a container-based installation.
Location:
C:\v\pgm\zeppelin-0.11.0
To start:
cd C:\v\pgm\zeppelin-0.11.0\bin zeppelin.cmd
Location:
/mnt/sda4/development/zeppelin-0.11.0-bin-netinst/
To start as daemon:
cd /mnt/sda4/development/zeppelin-0.11.0-bin-netinst ./bin/zeppelin-daemon.sh
To start interactively:
cd /mnt/sda4/development/zeppelin-0.11.0-bin-netinst/bin zeppelin.sh
JAVA_HOME should be set to “Java 8 update 151 or newer”. (For current user it can be done in ~/.bashrc). export JAVA_HOME=/mnt/sda4/development/java/jdk11
Origin: git@78.47.83.54:/srv/git/heliumpackages.git
https://zeppelin.apache.org/docs/0.11.0/interpreter/spark.html
docker run -u $(id -u) -p 8080:8080 -p 4040:4040 --rm -v /mnt/disk1/spark-3.1.2:/opt/spark -e SPARK_HOME=/opt/spark --name zeppelin apache/zeppelin:0.10.0
/mnt/sda4/development/workspaces.zeppelin/zeppelin/local-repo/sparkspark.driver.memory = 2g spark.executor.memory = 8g${ZEPPELIN_HOME}/conf/zeppelin-env.sh:-- not wait for debugger (n=> JVM executes the code immediately) export ZEPPELIN_INTP_JAVA_OPTS="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=6006" -- If you want Java to wait for you to connect before executing the application, replace suspend=n with suspend=y. (is usually not necessary) export ZEPPELIN_INTP_JAVA_OPTS="-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=6006"
ports: - 127.0.0.1:8080:8080 - 127.0.0.1:8111:8111 - 127.0.0.1:5005:5005 - 127.0.0.1:6006:6006
To start a debugging session:
Note: it is not possible to set the value for a variable with F2 key (=“Set value”). But it can be done with “Evaluate” functionality. E.g. “var1=123”. See bug description
See also: How to diagnose Zeppelin
Prerequisites:
sudo npm install --global yarn
node should have the proper version~16.20.2nvm use 16.20.2So in short:
zeppelin-daemon.sh should also work# Linux at home cd /mnt/sda4/development/workspaces.zeppelin/zeppelin/zeppelin-web nvm use 16.20.2 yarn run dev:helium # all in one cd /mnt/sda4/development/workspaces.zeppelin/zeppelin/zeppelin-web && nvm use 16.20.2 && yarn run dev:helium # Linux at work cd /v/IdeaProjects/zeppelin/zeppelin-web && yarn run dev:helium
%sh echo -e "%table key\tvalue\nsun\t-100\nmoon\t20"
These problems are occured in my Docker-based Zeppelin instance. It was not worked properly on some places, so it was necessary to make some configuration changes.
The default spark interpreter did not load my JARS, so it is important to set the SPARK_HOME to a spark installation (at least 3.1.2). So firstly:
docker exec -u 0 -it zeppelin2 bashimport de.liebib.sparktest.SparkTesterTo load JARs which was newly compiled it is necessary to restart the Tomcat. Restarting Spark interpreter does not suffice. So to load new code from JARs there are the following ways:
spark.jars parameter (e.g. set it to an empty value)spark.jars parameter againSee also: https://stackoverflow.com/questions/40550011/zeppelin-how-to-restart-sparkcontext-in-zeppelin
To compile helium applications (for example those, which are contained in zeppelin-examples) the dependency helium-dev is necessary, which is not saved in the remote apache repository. So to get it, first compile and install it to the local maven repo:
./mvnw clean install -Phelium-dev -DskipTests
After that the package should be in your local repo.
Configurations made for example in conf/zeppelin-site.xml (conf/shiro.ini too?) will be not loaded by default. It is necessary to set environment variable ZEPPELIN_HOME. In the case of my development environment at home:
ZEPPELIN_HOME=/mnt/sda4/development/workspaces.zeppelin/zeppelin
After that Zeppelin will load configuration files from ${ZEPPELIN_HOME}/conf.
docker run -p 8080:8080 --rm --name zeppelin apache/zeppelin:0.11.0
docker run -p 8080:8080 --mount type=bind,source="C:\v\zeppelin\app",target=/app --name zeppelin apache/zeppelin:0.11.0
docker run -p 8080:8080 --mount type=bind,source="C:\v\zeppelin\app",target=/app --mount type=bind,source="C:\v\zeppelin\notebook",target=/notebook --name zeppelin apache/zeppelin:0.11.0
docker run -p 8080:8080 --rm --name stoic_bartik apache/zeppelin:0.11.0
docker exec -u 0 -it zeppelinForDev bash
export ZEPPELIN_JAVA_OPTS="-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005" export ZEPPELIN_INTP_JAVA_OPTS="-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=6006"