I wrote a program using Java Spark API. Given my data is big, I am getting the following error
java.lang.OutOfMemoryError: Java heap space
Any idea how to increase java heap space of Spark EC2 cluster on Aws? I can give details about my code and cluster setup if necessary. Thanks.
I was able to increase the Heap space by adding two flags while submitting the application jar to spark-submit .
--executor-memory 10g --driver-memory 2g
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