FAQ03【Spark】报错:java.lang.IllegalArgumentException: System memory 259522560 must be at least 47185

一、报错如下:

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.

FAQ03【Spark】报错:java.lang.IllegalArgumentException: System memory 259522560 must be at least 47185_第1张图片

二、解决办法

设置应用程序的 VM options

idea的设置路径在:Run -Edit Configurations-Application选择对应的程序,设置VM options,如下:
内容为:

-Xms256m -Xmx1024m

FAQ03【Spark】报错:java.lang.IllegalArgumentException: System memory 259522560 must be at least 47185_第2张图片

你可能感兴趣的:(FAQ,spark,spark,java,intellij-idea)