一、报错如下:
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.

二、解决办法
设置应用程序的 VM options
idea的设置路径在:Run -Edit Configurations-Application选择对应的程序,设置VM options,如下:
内容为:
-Xms256m -Xmx1024m

博客详细记录了在使用Spark时遇到的一个错误:java.lang.IllegalArgumentException,提示系统内存259522560必须至少为471859200。解决方案是通过增加heap大小,具体是在IntelliJ IDEA中调整应用程序的VM options配置。
4724

被折叠的 条评论
为什么被折叠?



