Spark java.lang.OutOfMemoryError: Java heap space

后端 未结 12 1994
半阙折子戏
半阙折子戏 2020-11-22 13:55

My cluster: 1 master, 11 slaves, each node has 6 GB memory.

My settings:

spark.executor.memory=4g, Dspark.akka.frameSize=512

12条回答
  •  醉酒成梦
    2020-11-22 14:14

    Setting these exact configurations helped resolving the issue.

    spark-submit --conf spark.yarn.maxAppAttempts=2 --executor-memory 10g --num-executors 50 --driver-memory 12g
    

提交回复
热议问题