Skip to content

Small setup of development environment for Apache Spark with docker

Notifications You must be signed in to change notification settings

aljavier/spark-docker-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installing Spark

Starting Apache-Spark docker cluster

Start Spark master and worker as per the configuration in the docker-compose.yml file.

docker-compose up --scale spark-worker=3 # at most 10 workers are enough 

Now you can go to Spark master UI at http://localhost:8080.

Testing by submitting an example application to Spark.

Now on the master container run Spark example

spark-submit --master spark://spark-master:7077 --class org.apache.spark.examples.SparkPi \
/usr/local/spark/examples/jars/spark-examples_2.12-3.0.1.jar 1000

About

Small setup of development environment for Apache Spark with docker

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published