docker build -t molab/hadoop hadoop
docker-compose -f hadoop/docker-compose.yml up -d
docker build -t molab/spark-yarn spark
docker run --rm -ti --link=hadoop_yarn_1:yarn --link=hadoop_namenode_1:namenode molab/spark-yarn
docker build -t molab/spark-notebook notebook
docker run --rm -ti --link=hadoop_yarn_1:yarn --link=hadoop_namenode_1:namenode molab/spark-notebook
In the notebook run
from pyspark import SparkContext
sc = SparkContext(master="yarn-client")
docker build -t molab/zeppelin zeppelin
docker run --rm -ti -p 8080:8080 -p 8081:8081 --link=hadoop_yarn_1:yarn --link=hadoop_namenode_1:namenode molab/zeppelin