spark-submit config through file

谁说我不能喝 提交于 2019-12-01 09:04:37

You can use --properties-file which should include parameters with starting keyword spark like

spark.driver.memory 5g
spark.executor.memory 10g

And command should look like:

spark-submit --class Eventhub --master yarn --deploy-mode cluster --properties-file <path-to-your-conf-file> --files app.conf spark-hdfs-assembly-1.0.jar --conf "app.conf"
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!