在jarn上运行mapreduce作业时找不到Jar文件

时间:2015-08-24 20:13:16

标签: java hadoop mapreduce hbase

我正在尝试在纱线上运行mapreduce工作。 当我在本地运行它时,它有这样的信息:

  

2015-08-24T11:55:26 INFO main mapred.LocalDistributedCacheManager:Localized   文件:/data/yany/project/hbase-oss/target/hbase-oss-1.0.0-SNAPSHOT-standalone.jar   如   文件:/tmp/hadoop-yany/mapred/local/1440442525965/hbase-oss-1.0.0-SNAPSHOT-standalone.jar

但是当我设置

hBaseConfig.set("mapreduce.framework.name", "yarn");

并给出一些纱线参数

hBaseConfig.addResource("yarn_site.xml");

作业从纱线开始,但最终失败并显示错误消息:

2015-08-24T12:32:19 INFO main impl.YarnClientImpl: Submitted application application_1432167711015_0030
2015-08-24T12:32:19 INFO main mapreduce.Job: The url to track the job: http://somelink.com:8088/proxy/application_1432167711015_0030/
2015-08-24T12:32:19 INFO main mapreduce.Job: Running job: job_1432167711015_0030
2015-08-24T12:32:22 INFO main mapreduce.Job: Job job_1432167711015_0030 running in uber mode : false
2015-08-24T12:32:22 INFO main mapreduce.Job:  map 0% reduce 0%
2015-08-24T12:32:22 INFO main mapreduce.Job: Job job_1432167711015_0030 failed with state FAILED due to: Application application_1432167711015_0030 failed 2 times due to AM Container for appattempt_1432167711015_0030_000002 exited with  exitCode: -1000
For more detailed output, check application tracking page:http://somelink.com:8088/proxy/application_1432167711015_0030/Then, click on links to logs of each attempt.
Diagnostics: java.io.FileNotFoundException: File file:/data/yany/project/hbase-oss/target/hbase-oss-1.0.0-SNAPSHOT-standalone.jar does not exist
Failing this attempt. Failing the application.

0 个答案:

没有答案