Simple standalone Spark cluster
Docker Compose 1.18.0 and compatible Docker engine
Start cluster with 2 worker nodes
docker-compose up -d --scale worker=2
Start spark-shell session
docker-compose exec master bin/spark-shell --master spark://master:7077
Start spark-shell with additional libraries
docker-compose exec master bin/spark-shell --master spark://master:7077 --jars /libs/foo.jar