An example of using Semantive/Spark Docker image with sbt-docker plugin to create and submit a Spark App.
- Docker 1.10.0+ and docker-compose 1.6.0+
- SBT
- Create docker image of the sbt-application by executing following command inside
sbt-application
directory:
sbt docker
- Run whole cluster using
docker-compose
(from the directory containingdocker-compose.yml
file):
docker-compose up
Docker-compose will run three images:
- Spark master
- Spark worker
- sbt-application (Spark job)