How to add JVM option -Xss512m to spark-submit?
In other words, where do I have to use spark.executor.extraJavaOptions and spark.driver.extraJavaOptions?
The Java options have to be specified via the conf parameter so ideally what you will be doing is:
spark-submit --class YOUR_MAIN_CLASS --conf "spark.executor.extraJavaOptions=-Xss512m"
--conf "spark.driver.extraJavaOptions=-Xss512m" APP.jar
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With