spark streaming only executors on one machine is working

大憨熊 提交于 2021-02-08 08:51:11

问题


I'm using Spark Streaming to deal with message delivered by Kafka. and now I came across with a problem.

There are several executors set on different machines to process those tasks, but there's only one executor, or to be specific, only executors on one machine is actually working while others remain free. Now tasks are heavily queued and I got oom alerts often.

Here is my config:

—driver-cores 1 —driver-memory 512m —executor-memory 512m 
—conf spark.memory.useLegacyMode=true 
—conf spark.eventLog.enabled=true
—conf spark.driver.extraJavaOptions='-Xmx512m -Xmx512m' 
—conf spark.executor.extraJavaOptions='-XX:NewRatio=4 -XX:PermSize=100M' 
—conf spark.dynamicAllocation.enabled=true 
—conf spark.shuffle.service.enabled=true 
—conf spark.dynamicAllocation.minExecutors=1 
—conf spark.dynamicAllocation.maxExecutors=5 
—conf spark.dynamicAllocation.initialExecutors=3 
—conf spark.dynamicAllocation.executorIdleTimeout=60s

Screenshot:

来源:https://stackoverflow.com/questions/38217262/spark-streaming-only-executors-on-one-machine-is-working

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!