赞
踩
Warning: Ignoring non-spark config property: count.end.time=1564122000000
3方式可以用来传递自定义参数,通过args[]去获取
多个配置参会传递多个 --config
./bin/spark-submit --class com.xx.TestApp
--master yarn
--deploy-mode cluster
--driver-memory 1g
--num-executors 2
--executor-memory 512M
--executor-cores 2
//配置信息
--conf spark.mongodb.input.uri=mongodb://192.168.1.2:27017/onemap-statis
--conf spark.mongodb.output.collection=test_collection
test-0.0.1-SNAPSHOT.jar
./bin/spark-submit
--class com.xx.TestAppp
--master yarn
--deploy-mode cluster
--driver-memory 1g
--num-executors 2
--executor-memory 512M
--executor-cores 2
//配置信息
--properties-file extend.conf
test-0.0.1-SNAPSHOT.jar
arg0 arg1 arg3可以传递自定义参数,主函数里面获取
./bin/spark-submit
--class com.xx.TestAppp
--master yarn
--deploy-mode cluster
--driver-memory 1g
--num-executors 2
--executor-memory 512M
--executor-cores 2
test-0.0.1-SNAPSHOT.jar arg0 arg1 arg3 //配置信息
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。