Sign inSign up

matiaet98/spark

By matiaet98

•Updated over 5 years ago

Apache Spark 3 on Docker

Image
0

10K+

matiaet98/spark repository overview

⁠Apache Spark 3 for Docker

This container is intended for creating an Apache Spark cluster using docker.

I created it for testing purposes on a Nomad cluster, don't use it on production environments.

⁠Start Spark Master
docker run \
  -d \
  --name myspark \
  -p 7077:7077 \
  -p 8080:8080 \
  -p 18080:18080 \
  -e ROLE=master \
  matiaet98/spark:latest
⁠Start Spark Worker
docker run \
  -d \
  --name myspark2 \
  -p 8081:8081 \
  -e SPARK_MASTER_HOST=<master host or ip> \
  -e ROLE=slave \
  matiaet98/spark:latest

Environment variables:

  • SPARK_MASTER_HOST: Master ip address or hostname.
  • SPARK_MASTER_PORT: Master port, defaults to 7077
  • ROLE: master or slave

Tag summary

Content type

Image

Digest

Size

621.8 MB

Last updated

over 5 years ago

docker pull matiaet98/spark