运行 ​​ScalaSpark​​ 程序的时候出现错误:

System memory * must be at least *.Please increase heap size using the --driver--memory option or spark.driver.memory

spark System memory must be at least_ide

在 ​​Intellij IDEA​​ 里面找到:

Run -> Edit Configurations -> Application -> Configurations 

spark System memory must be at least_spark_02

设置大小:

-Xms256m -Xmx1024m

spark System memory must be at least_scala_03