Public | Automated Build

Last pushed: 3 years ago
Short Description
Short description is empty for this repo.
Full Description

Apache Spark base image for Docker

This image is the base for master and worker images, and a CLI
environment for interacting with a Spark cluster.


  • docker build -t <name>/spark-base .


This assumes that the master knows itself as "spark-master"

  • docker run -it <name>/spark-base sh
  • export SPARK_LOCAL_HOSTNAME=$(hostname -i)
  • echo "<IP OF MASTER> spark-master" >> /etc/hosts
  • MASTER=spark://spark-master:7077 pyspark
  • example program: import socket, resource; sc.parallelize(range(1000)).map(lambda x: (socket.gethostname(), resource.getrlimit(resource.RLIMIT_NOFILE))).distinct().collect()
Docker Pull Command
Source Repository