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 shexport SPARK_LOCAL_HOSTNAME=$(hostname -i)echo "<IP OF MASTER> spark-master" >> /etc/hostsMASTER=spark://spark-master:7077 pysparkexample program: import socket, resource; sc.parallelize(range(1000)).map(lambda x: (socket.gethostname(), resource.getrlimit(resource.RLIMIT_NOFILE))).distinct().collect()Content type
Image
Digest
sha256:ff1ce4bb2…
Size
278.7 MB
Last updated
about 11 years ago
docker pull mattf/spark-base