SPARK_HOME :/usr/local/spark-1.6.0-bin-hadoop2.6
Try on docker image
sudo docker run -it --name spark-try --net host adolphlwq/docker-spark bash
Refer Spark on Mesos And Spark configuration for more details.
Instance SparkConf
conf = SparkConf()
conf.setMaster(mesos_endpoint)
conf.set("spark.mesos.executor.docker.image", "adolphlwq/docker-spark")
conf.set("spark.mesos.executor.home", "/usr/local/spark-1.6.0-bin-hadoop2.6")
Instance SparkContext
sc = SparkContext(conf=conf)
below is your code
...
No todos. Any issues is welcome.
Content type
Image
Digest
Size
583.9 MB
Last updated
about 10 years ago
docker pull adolphlwq/docker-spark