hadoop – 应用程序因AM容器失败2次:退出exitCode:1

我在hadoop-2.7.0上运行了mapreduce作业但是mapreduce作业无法启动,我遇到了这个波纹管错误:

Job job_1491779488590_0002 failed with state FAILED due to: Application application_1491779488590_0002 failed 2 times due to AM Container for appattempt_1491779488590_0002_000002 exited with  exitCode: 1
For more detailed output, check application tracking page:http://erfan:8088/cluster/app/application_1491779488590_0002Then, click on links to logs of each attempt.
Diagnostics: Exception from container-launch.
Container id: container_1491779488590_0002_02_000001
Exit code: 1
Stack trace: ExitCodeException exitCode=1: 
    at org.apache.hadoop.util.Shell.runCommand(Shell.java:545)
    at org.apache.hadoop.util.Shell.run(Shell.java:456)
    at org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:722)
    at org.apache.hadoop.yarn.server.nodemanager.DefaultContainerExecutor.launchContainer(DefaultContainerExecutor.java:211)
    at org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:302)
    at org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:82)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)


Container exited with a non-zero exit code 1
Failing this attempt. Failing the application.
17/04/10 13:40:08 INFO mapreduce.Job: Counters: 0

这个错误的原因是什么,我该如何解决这个问题?

任何帮助赞赏.

您可以查看实际问题的应用程序日志.

为此,您可以打开namenode Web界面
namenode_ip:50070
在这里你可以看到浏览选项,点击它.
在子菜单中,选择日志.
现在选择用户日志.

在这里,您可以看到您运行的应用程序列表.

打开你上面提到的工作的链接application_1491779488590_0002你可以看到每个地图的日志&减少任务.
打开地图/减少作业日志链接.

在其中你可以看到:sys,error,stdout文件.
从这些日志文件中,您可以获得实际错误并可以修复它.

或者你看到这些登录
$HADOOP_HOME / logs / userlogs / application_id路径.

应用程序失败2次,因为如果应用程序主机由于某种原因失败,默认情况下它将再次尝试执行应用程序. AM重试属性可以设置为1以避免这种情况.

相关文章
相关标签/搜索