Spark-slave allows you to add multiple slaves to your spark cluster. (Works with spark-master)
150
This container is optional. It works only with spark-master container. Spark-master starts a cluster with one slave. Spark-slave allows you to add new slaves.
This worker is configured with 1 core and 2 Go RAM. If you want to change this configuration, you have to modify Dockerfile and build a new image.
To manage easily the containers, you have to choose a specific name and port by container !
docker run -d --rm --net sparkCluster -p 8082:8081 -v $PWD/app:/app --name slave2 -h slave2 swal4u/spark-slave:v2.4.2.1
I choose to add a function in my .bash_profile (OSX).
function slave-start () { docker run -d --rm --net sparkCluster -p "$2":8081 -v $PWD/app:/app --name "$1" -h "$1" swal4u/spark-slave:v2.4.2.1 ; }
docker stop slave2
docker stop spark
git tag -a vX.Y.Z.T
git push --tags
Docker Hub detects a new version and build the container automatically.
Content type
Image
Digest
Size
408.7 MB
Last updated
almost 7 years ago
docker pull swal4u/spark-slave:v2.4.2.1