An example of using a Docker images to create a Spark Cluster and submit an App.
- Docker 1.10.0+ and docker-compose 1.6.0+
- SBT
- Create the app jar by executing the following command inside the
sbt-application
directory:
sbt assembly
- Run the Spark cluster by executing the following command from the top directory:
docker-compose up master slave
This will run two images:
- Spark master
- Spark slave
- Run the Spark app by executing the following command from the top directory
docker-compose up hello-world
This will use a docker container to submit an app to the Spark cluster
The master’s web UI can be found at http://localhost:8080