The docker-compose file covers bringing up a Apache Spark cluster with 1 Master and 1 Worker node. Furthermore, the container is modified to scale dynamically to add/remove worker nodes from the Spark cluster. The Master and Worker containers are build on top of work done by https://hub.docker.com/r/p7hb/docker-spark/.
It is very important to set the COMPOSE_TLS_VERSION correctly (e.g in $HOME/.bashrc ot $HOME/.bash_profile) as TLS 1.0 & 1.1 have been deprecated
COMPOSE_TLS_VERSION
$HOME/.bashrc
$HOME/.bash_profile
export COMPOSE_TLS_VERSION=TLSv1_2
export DOCKER_HOST=<VCH_IP:port> e.g export DOCKER_HOST=vch.corp.local:2376
Download the docker-compose.yml file and make sure the it is in the same directory from where you are running the docker-compose up -d command
docker-compose up -d
http://<vch_fqdn>:8080
docker-compose up --scale worker=5 -d
docker-compose down --scale worker=1 -d
docker-compose stop docker-compose rm
Check also the Apache Spark Blog Article on the VMware CNA Blog for a more detailed description.