16/06/27 20:58:58 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
16/06/27 20:58:59 INFO client.RMProxy: Connecting to ResourceManager at Master.Hadoop/172.18.115.230:8032
16/06/27 20:59:00 INFO input.FileInputFormat: Total input paths to process : 2
16/06/27 20:59:00 INFO mapreduce.JobSubmitter: number of splits:2
16/06/27 20:59:01 INFO mapreduce.JobSubmitter: Submitting tokens for job: job_1444064267538_0040
16/06/27 20:59:01 INFO impl.YarnClientImpl: Submitted application application_1444064267538_0040
16/06/27 20:59:01 INFO mapreduce.Job: The url to track the job: http://Master.Hadoop:8088/proxy/application_1444064267538_0040/
16/06/27 20:59:01 INFO mapreduce.Job: Running job: job_1444064267538_0040
16/06/27 20:59:04 INFO mapreduce.Job: Job job_1444064267538_0040 running in uber mode : false
16/06/27 20:59:04 INFO mapreduce.Job: map 0% reduce 0%
16/06/27 20:59:04 INFO mapreduce.Job: Job job_1444064267538_0040 failed with state FAILED due to: Application application_1444064267538_0040 failed 2 times due to AM Container for appattempt_1444064267538_0040_000002 exited with exitCode: 127
For more detailed output, check application tracking page:http://Master.Hadoop:8088/proxy/application_1444064267538_0040/Then, click on links to logs of each attempt.
Diagnostics: Exception from container-launch.
Container id: container_1444064267538_0040_02_000001
Exit code: 127
Stack trace: ExitCodeException exitCode=127:
at org.apache.hadoop.util.Shell.runCommand(Shell.java:538)
at org.apache.hadoop.util.Shell.run(Shell.java:455)
at org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:715)
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 127
Failing this attempt. Failing the application.
16/06/27 20:59:04 INFO mapreduce.Job: Counters: 0
2 个解决方案
#1
你的输入输出目录有问题,使用绝对路径。
#2
输入没有问题,那个目录下有文件,不是输入问题
#1
你的输入输出目录有问题,使用绝对路径。
#2
输入没有问题,那个目录下有文件,不是输入问题