跑hadoop任务报错:16/01/11 10:35:50 INFO mapreduce.Job: map 0% reduce 0% 16/01/11 10:35:50 INFO mapreduce.Job: Job job_1450758981392_0015 failed with state FAILED due to: Application application_1450758981392_0015 failed 2 times due to AM Container for appatte

16/01/11 10:35:50 INFO mapreduce.Job: map 0% reduce 0%
16/01/11 10:35:50 INFO mapreduce.Job: Job job_1450758981392_0015 failed with state FAILED due to: Application application_1450758981392_0015 failed 2 times due to AM Container for appattempt_1450758981392_0015_000002 exited with exitCode: 1 due to: Exception from container-launch: ExitCodeException exitCode=1:
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:702)
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:745)


Container exited with a non-zero exit code 1
.Failing this attempt.. Failing the application.
16/01/11 10:35:50 INFO mapreduce.Job: Counters: 0

fish - Hadooper

赞同来自: 擎天飞烟

使用yarn logs命令查看一下详细的任务执行时输出的log是什么?

fish - Hadooper

赞同来自: 擎天飞烟

yarn-site.xml的yarn.application.classpath配置项中,加上hbase相关的jar包。

fish - Hadooper

赞同来自: 擎天飞烟

不是,是在yarn-site.xml中配置yarn.application.classpath,类似如下(请根据包的实际地址替换其中的大写字母宏),把hbase相关的加进去。
  <property>
    <name>yarn.application.classpath</name>
    <value>$HADOOP_CLIENT_CONF_DIR,$HADOOP_CONF_DIR,$HADOOP_COMMON_HOME/*,$HADOOP_COMMON_HOME/lib/*,$HADOOP_HDFS_HOME/*,$HADOOP_HDFS_HOME/lib/*,$HADOOP_YARN_HOME/*,$HADOOP_YARN_HOME/lib/*</value>
  </property>

hello_world - 大数据工程师@人民网

赞同来自:

确认一下数据的输入路径和输出路径是否正确

ahdaizhixu

赞同来自:

我也是同样的问题,请问楼主是如何解决的?

赤那

赞同来自:

对啊,怎么解决的呢?

要回复问题请先登录注册