Dockerfile
Dockerfile
Create a file called Dockerfile (name does matter, docker program will look for that file)
Need to create 2 shell scripts, start-master.sh and start-worker.sh, to start up Spark cluster with master and work nodes
vi Dockerfile, enter below, then save and exit
vi start-master.sh, enter below, save and exit
do not forget the back slash \ as line continuation
chmod +x start-master.sh
vi start-worker.sh, enter below, save and exit
chmod +x start-worker.sh
Then build the docker image to be used in our class.
This is assume you are inside docker_dir directory, if not, cd into it, because it has the Dockerfile required
Run below to build Spark cluster docker
Last updated