Public | Automated Build

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

Docker Spark

##Build

docker build -t sjeandeaux/docker-spark .

##Run

docker run -ti --rm=true  --name spark  -v $(pwd)/job:/var/lib/job:ro \
      sjeandeaux/docker-spark --class org.apache.spark.examples.SparkPi --master local[8] \
      /var/lib/job/examples.jar 100

##open bash

docker run -ti --name spark --entrypoint="/bin/bash" -v $(pwd)/job:/var/lib/job:ro sjeandeaux/docker-spark
host = $(shell if [ -n "$(shell which boot2docker)" ]; then boot2docker ip; else echo 127.0.0.1; fi)
#you can open your web browser http://$(host):4040/
Docker Pull Command
Owner
sjeandeaux
Source Repository