Hi,
I am getting below exceptions while running the Spark with Scala application,
1. Right click on Scala program -> Run As -> Scala application
Exception in thread “main” java.lang.IllegalArgumentException: System memory 259522560 must be at least 471859200. Please increase heap size using the –driver-memory option or spark.driver.memory in Spark configuration.
2. if i run spark-submit,
@localhost spark-1.5.2]$ bin/spark-submit –class com.scala.spark.demo.Wordcount /home/Desktop/scalasparkWC.jar /home/Desktop/wordcount.parquet /home/Desktop/Apr_2017_003
Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
[ubuntu@localhost spark-1.5.2]$