IDEA运行代码时报错
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.
原因是内存溢出
解决方案扩大内存
在VM options中设置内存-Xms512m
具体可以参考一下
java编译内存溢出512m_Java的内存溢出详解