Sign inSign up

ls12styler/spark

By ls12styler

•Updated over 6 years ago

An Apache Spark docker image

Image
0

1.4K

ls12styler/spark repository overview

⁠Docker Apache Spark Cluster

A scalable Apache Spark cluster running in Docker.

Build: Build Status

⁠Usage:

⁠Cluster

Bring up a 4 node cluster (1 Master, 3 Workers):

docker-compose up --scale spark-slave=3
⁠spark-shell

By default, running the image without a command will take you into the Spark shell:

docker run --rm -it -e SPARK_MASTER=spark://spark-master:7077 --network docker-spark_spark-network ls12styler/spark:latest
⁠bash shell

You can overide the command like so if you need anything else:

docker run --rm -it -e SPARK_MASTER=spark://spark-master:7077 --network docker-spark_spark-network ls12styler/spark:latest /bin/bash

⁠Workflow

docker-compose up --scale spark-slave=3
docker build -t ls12styler/spark:latest .
docker run --rm -it -e SPARK_MASTER=spark://spark-master:7077 --network docker-spark_spark-network ls12styler/spark:latest

Used as a reference: https://medium.com/@marcovillarreal_40011/creating-a-spark-standalone-cluster-with-docker-and-docker-compose-ba9d743a157f⁠

Tag summary

Content type

Image

Digest

Size

276 MB

Last updated

about 7 years ago

docker pull ls12styler/spark