主要参考运行示例:
1 | #每台安装过docker的node运行 |
1 | #spark测试demo,这里是我自己上传的应用 |
1 | docker run --net=host --name spark-demo1 -v /vagrant/vagrant/examples:/example -v /vagrant/vagrant:/sparkhome paladintyrion/mesos1.0.2-spark2.0.0:latest spark-submit --master=mesos://zk://10.236.23.65:2181,10.236.23.31:2181,10.236.23.67:2181/mesos --deploy-mode=client --conf spark.mesos.coarse=true --conf spark.executor.memory=768m --conf spark.executor.uri=/sparkhome/spark-2.0.1-bin-hadoop2.7.tgz --class JavaWordCount /example/jwc-1.0-SNAPSHOT.jar file:///sparkhome/Vagrantfile |