Zeppelin official Docker image download and configure for O'Reilly Spark 2.1 course
✓ Published0🌍 Public
PP7h
Last edited Aug 31, 2017
Created on Aug 12, 2017
This example shows how to set up the Zeppelin notebook environment for an O'Reilly Spark 2.1 course by downloading course materials and launching the official Apache Zeppelin Docker image. The script creates directories for notebooks, logs, and data, then downloads and extracts a GitHub repository containing the course content. It runs the `docker run` command with volume mounts for `$PWD/logs`, `$PWD/data`, and `$PWD/notebooks`, while setting environment variables like `ZEPPELIN_LOG_DIR`, `ZEPPELIN_DATA_DIR`, and `ZEPPELIN_NOTEBOOK_DIR` to point to those mounted paths. The code also includes cleanup commands using `docker images` and `docker ps -a` with `awk` and `xargs` to remove all Docker images and containers.
AI-generated description