美文网首页
spark错误:Container exited with a

spark错误:Container exited with a

作者: 程序媛啊 | 来源:发表于2022-05-23 14:55 被阅读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

相关文章

网友评论

      本文标题:spark错误:Container exited with a

      本文链接:https://www.haomeiwen.com/subject/zlmrprtx.html