spark错误:Container exited with a

2022-05-23  本文已影响0人  程序媛啊

集群模式提交任务到yarn,但是状态一直是ACTIVED或者FAILED,并且报如下错误:

Application application_1557392692629_0008 failed 2 times due to AM Container for appattempt_1557392692629_0008_000002 exited with exitCode: 13

Failing this attempt.Diagnostics: [2019-05-29 20:51:14.623]Exception from container-launch.

Container id: container_e01_1557392692629_0008_02_000001

Exit code: 13

[2019-05-29 20:51:14.624]Container exited with a non-zero exit code 13. Error file: prelaunch.err.

Last 4096 bytes of prelaunch.err :

Last 4096 bytes of stderr :

onfun$run$1(ApplicationMaster.scala:245)

。。。。。。。。。省略。。。。。。。。。。。。。。。。。。。

Last 4096 bytes of prelaunch.err :

Last 4096 bytes of stderr :

onfun$run$1(ApplicationMaster.scala:245)

解决方法:
在Java程序中把setMaster("local")去掉,因为它会覆盖命令行中的yarn模式而以本地模式执行,导致一直等待

转载:https://www.jianshu.com/p/1679c2ea08ab

上一篇 下一篇

猜你喜欢

热点阅读