- <pre name="code" class="java">14/05/23 16:49:04 INFO mapreduce.Job: The url to track the job: http://flow1.richinfo.cn:8088/proxy/application_1400819375351_0004/
- 14/05/23 16:49:04 INFO mapreduce.Job: Running job: job_1400819375351_0004
- 14/05/23 16:49:13 INFO mapreduce.Job: Job job_1400819375351_0004 running in uber mode : false
- 14/05/23 16:49:13 INFO mapreduce.Job: map 0% reduce 0%
- 14/05/23 16:49:13 INFO mapreduce.Job: Job job_1400819375351_0004 failed with state FAILED due to: Application application_1400819375351_0004 failed 2 times due to AM Container for appattempt_1400819375351_0004_000002 exited with exitCode: 1 due to: Exception from container-launch: org.apache.hadoop.util.Shell$ExitCodeException:
- org.apache.hadoop.util.Shell$ExitCodeException:
- at org.apache.hadoop.util.Shell.runCommand(Shell.java:505)
- at org.apache.hadoop.util.Shell.run(Shell.java:418)
- at org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:650)
- at org.apache.hadoop.yarn.server.nodemanager.DefaultContainerExecutor.launchContainer(DefaultContainerExecutor.java:195)
- at org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:300)
- at org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:81)
- 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)
- Container exited with a non-zero exit code 1
- .Failing this attempt.. Failing the application.
解决方案
第一, 首先要添加hbase相关依赖到hadoop.env.sh,到web页面上配置yarn 中的
第二,配置yarn.appliation.classpath,运行环境