解决 SPARK_MASTER_OPTS is not allowed to specify max heap(Xmx) memory settings

 SPARK_MASTER_OPTS is not allowed to specify max heap(Xmx) memory settings (was -Xms512m -Xmx1024m  -Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.port=17005 -Dcom.sun.management.jmxremote.ssl=false  -Dcom.sun.management.jmxremote.authenticate=false). Use the corresponding configuration instead.

上面的报错信息是:发生在spark/conf目录下的spark-env.sh文件中的 SPARK_MASTER_OPTS属性。

通过使用 /SPARK_MASTER_OPTS,将这一行加#注释或删去保存即可。

如果此方法未解决你的问题,请另谋其他原因及方案。

这里仅记录这一种解决方案。

原文地址:https://www.cnblogs.com/LinQingYang/p/13225076.html