我是hadoop的新手,并且一直在努力学习在hadoop 2.7.1 jar中运行mapreduce示例。我使用以下命令来执行此操作 bin \ yarn jar share / hadoop / mapreduce / hadoop-mapreduce-examples-2.7.1.jar wordcount输出输出
作业开始但失败并出现以下错误
Failed redirect for container_1439014904092_0001_02_000001
Failed while trying to construct the redirect url to the log server. Log Server url may not be configured
java.lang.Exception: Unknown container. Container either has not started or has already completed or doesn't belong to this node at all.
Diagnostics: Exception from container-launch.
Container id: container_1439014904092_0001_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.la
unchContainer(DefaultContainerExecutor.java:211)
at org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.C
ontainerLaunch.call(ContainerLaunch.java:302)
at org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.C
ontainerLaunch.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:744)
Shell output: 1 file(s) moved.
Container exited with a non-zero exit code 1
Failing this attempt. Failing the application.
15/08/08 11:55:51 INFO mapreduce.Job: Counters: 0
我确实尝试通过stackoverflow和google上的几个链接,但无法详细找到此错误的实际原因以及解决方案。有人之前有过这个错误吗?这个错误的相同和解决方法的确切原因是什么?