Skip to content

Instantly share code, notes, and snippets.

@P7h
Last active August 31, 2017 07:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save P7h/b1d46255ad7299f7646782bc2093c548 to your computer and use it in GitHub Desktop.
Save P7h/b1d46255ad7299f7646782bc2093c548 to your computer and use it in GitHub Desktop.
Zeppelin official Docker image download and configure for O'Reilly Spark 2.1 course
# Docker mounts the user's home directory.
# We will download the course notebooks and data into a folder in the home directory and mount it with out Docker image.
mkdir ~/zepp; cd ~/zepp
mkdir -p notebooks logs data
wget -c https://codeload.github.com/adbreind/spark-zeppelin-17-1/zip/master -O spark-zeppelin-17-1-master.zip
unzip spark-zeppelin-17-1-master.zip
mv spark-zeppelin-17-1-master/data/* data/
mv spark-zeppelin-17-1-master/notebooks/* notebooks/
rm -rf spark-zeppelin-17-1-master.zip spark-zeppelin-17-1-master
## Official Docker Image from: https://hub.docker.com/r/apache/zeppelin/
docker run -p 8080:8080 -v $PWD/logs:/logs -v $PWD/data:/data -v $PWD/notebooks:/notebooks \
-e ZEPPELIN_LOG_DIR='/logs' -e ZEPPELIN_DATA_DIR='/data' -e ZEPPELIN_NOTEBOOK_DIR='/notebooks' \
--name zeppelin apache/zeppelin:0.7.2
# docker exec -it zeppelin /bin/bash
## Delete all the Docker images and containers of the host.
docker images | awk '{print $3}' | xargs docker rmi -f
docker ps -a | awk '{print $1}' | xargs docker rm -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment