Stack trace: ExitCodeException exitCode=1:

15/12/27 22:40:29 INFO mapreduce.Job:  map 0% reduce 0%
15/12/27 22:40:29 INFO mapreduce.Job: Job job_1451283482913_0002 failed with state FAILED due to: Application application_1451283482913_0002 failed 2 times due to AM Container for appattempt_1451283482913_0002_000002 exited with  exitCode: 1
For more detailed output, check application tracking page:http://master:8088/proxy/application_1451283482913_0002/Then, click on links to logs of each attempt.
Diagnostics: Exception from container-launch.
Container id: container_1451283482913_0002_02_000001
Exit code: 1
Stack trace: ExitCodeException exitCode=1: 
        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 1
Failing this attempt. Failing the application.
15/12/27 22:40:29 INFO mapreduce.Job: Counters: 0
15/12/27 22:40:29 ERROR tools.DistCp: Exception encountered 
java.io.IOException: DistCp failure: Job job_1451283482913_0002 has failed: Application application_1451283482913_0002 failed 2 times due to AM Container for appattempt_1451283482913_0002_000002 exited with  exitCode: 1
For more detailed output, check application tracking page:http://master:8088/proxy/application_1451283482913_0002/Then, click on links to logs of each attempt.
Diagnostics: Exception from container-launch.
Container id: container_1451283482913_0002_02_000001
Exit code: 1
是没有在/home/hadoop/hadoop-2.6.1/etc/hadoop/yarn-site.xml 中设置yarn.application.classpath所致,我添加如下即可:

  
  1. <property>
  2.   <name>yarn.application.classpath</name>
  3.       <value>
  4.            /home/hadoop/hadoop-2.6.1/etc/*,
  5.            /home/hadoop/hadoop-2.6.1/etc/hadoop/*,
  6.            /home/hadoop/hadoop-2.6.1/lib/*,
  7.            /home/hadoop/hadoop-2.6.1/share/hadoop/common/*,
  8.            /home/hadoop/hadoop-2.6.1/share/hadoop/common/lib/*,
  9.            /home/hadoop/hadoop-2.6.1/share/hadoop/mapreduce/*,
  10.            /home/hadoop/hadoop-2.6.1/share/hadoop/mapreduce/lib/*,
  11.            /home/hadoop/hadoop-2.6.1/share/hadoop/hdfs/*,
  12.            /home/hadoop/hadoop-2.6.1/share/hadoop/hdfs/lib/*,
  13.            /home/hadoop/hadoop-2.6.1/share/hadoop/yarn/*,
  14.            /home/hadoop/hadoop-2.6.1/share/hadoop/yarn/lib/*
  15.       </value>
  16. </property>
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值