spark-submit 样例

spark-submit --conf spark.driver.host=xx \

--conf hive.metastore.uris=xx \

--class com.mainclass\

--num-executors 1 \

--executor-cores 2 \

--master local[2] \

--driver-cores 1 \

--executor-memory 4g \

--jars xx/fastjson-1.2.62.jar,xx.jar \

xx.jar 

你可能感兴趣的:(spark,spark,java)