Spark异常之Exception in connection

  • 报错日志
21/08/09 11:24:52 WARN server.TransportChannelHandler: Exception in connection from xxxx/172.19.167.56:65256
java.io.IOException: Connection reset by peer
21/08/09 11:24:52 WARN cluster.YarnSchedulerBackend$YarnSchedulerEndpoint: Container marked as failed: container_1618886499908_1999_01_000004 on host: dn4.cdh.tcredit.com. Exit status: 52. Diagnostics: Exception from container-launch.
Stack trace: ExitCodeException exitCode=52: 
21/08/09 11:24:52 ERROR cluster.YarnScheduler: Lost executor 3 on dn4.cdh.tcredit.com: Container marked as failed: container_1618886499908_1999_01_000004 on host: dn4.cdh.tcredit.com. Exit status: 52. Diagnostics: Exception from container-launch.
Stack trace: ExitCodeException exitCode=52: 
21/08/09 11:24:52 WARN scheduler.TaskSetManager: Lost task 23.0 in stage 31.0 (TID 3688, dn4.cdh.tcredit.com, executor 3): ExecutorLostFailure (executor 3 exited caused by one of the running tasks) Reason: Container marked as failed: container_1618886499908_1999_01_000004 on host: dn4.cdh.tcredit.com. Exit status: 52. Diagnostics: Exception from container-launch.
Stack trace: ExitCodeException exitCode=52: 
  • 问题原因
数据倾斜导致:该节点在shuffle过程中分配到过多的数据导致 - shuffle结果会分配到同一个节点中,导致该节点崩溃。
  • 解决方案 - 加内存

原资源配置为:

spark_run_conf="  --master yarn-client --queue root.tianchuang --driver-memory 4G --executor-memory 2G --executor-cores 2  "

修改后的资源配置:

spark_run_conf=" 	  --master yarn-client --queue root.tianchuang  --num-executors 50 --executor-memory 4G --executor-cores 8  "
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

随缘清风殇

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值