spark System memory must be at least

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

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

Intellij IDEA 里面找到:

Run -> Edit Configurations -> Application -> Configurations 

设置大小:

-Xms256m -Xmx1024m

原文地址:https://www.cnblogs.com/TTyb/p/8116532.html