Installation

The following sections will guide you through building the required docker images and setting up the spark network.

Obtaining the code

First, clone the code from Github. Please mind the branches. If you want to work with the latest release always use the master branch.

Building the docker images

Building the docker images is as easy as running the build-images script, which resides at the toplevel of the repository.

./build-images.sh

This provides the Docker Images: qbic/spark:latest_base qbic/spark:latest_master qbic/spark:latest_worker qbic/spark:latest_submit

Verify that the docker images have been built

docker image ls

Run docker-compose. This sets up the network and adds a number of workers (here 3).

docker-compose up --scale spark-worker=3

Verify that the network is up. Visit localhost:8080 and

docker network ls

Launch a new instance as the driver.

docker run --rm -it --network spark-service_spark-network qbic/spark:latest_submit /bin/sh

Refer to usage for detailed instructions about how to run example scripts and your custom programs on the spark network.