ERROR SparkContext: Error initializing SparkContext. 一时失言乱红尘 2022-05-23 01:55 134阅读 0赞 错误详情:egalArgumentException: System memory 259522560 must be at least 471859200. Please increase heap size using the --driver-memory option or spark.driver.memory in Spark configuration. 1、第一种修改方式: 在Run --> Edit Configurations --> VM options里面设置-Xmx 修改超过512M就行,格式:-Xmx1024m![20180530222200505][] 2、第二种修改方式(数字是字节需要换算) val conf = new SparkConf() conf.set("spark.testing.memory", "2147480000") [20180530222200505]: /images/20220523/f9535dce8afd41d39dc0f41865b0b65f.png
还没有评论,来说两句吧...