Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to add JVM option -Xss512m to spark-submit?

Tags:

apache-spark

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?

like image 740
krishna.kadigari Avatar asked Nov 03 '25 22:11

krishna.kadigari


1 Answers

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
like image 147
Sivaprasanna Sethuraman Avatar answered Nov 07 '25 04:11

Sivaprasanna Sethuraman



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!