Based tairangroup/hadoop:latest , Depend gudaoxuri/scala_2.11:latest
Start Spark:
docker run --name spark -h spark -P -e KEEP=true -d gudaoxuri/spark
Operation:
Hadoop Home:/opt/spark/
example:
> run-example org.apache.spark.examples.SparkPi
> spark-submit \
--class org.apache.spark.examples.SparkPi \
--master spark://spark:7077\
--deploy-mode cluster \
--driver-memory 512M \
--executor-memory 512M \
/opt/spark/examples/jars/spark-examples_2.11-2.2.1.jar \
1000