分享

Hadoop运行Wordcount时遇到的问题

yoki 发表于 2014-11-1 16:33:15 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 4 9213
  1. [hadoop@master ~]$ hadoop jar /usr/local/hadoop/share/hadoop/mapreduce/sources/hadoop-mapreduce-examples-2.5.1-sources.jar org.apache.hadoop.examples.WordCount input output2
  2. 14/11/01 14:45:38 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
  3. 14/11/01 14:45:39 INFO client.RMProxy: Connecting to ResourceManager at /0.0.0.0:8032
  4. 14/11/01 14:45:42 INFO input.FileInputFormat: Total input paths to process : 1
  5. 14/11/01 14:45:42 INFO mapreduce.JobSubmitter: number of splits:1
  6. 14/11/01 14:45:42 INFO mapreduce.JobSubmitter: Submitting tokens for job: job_1414824189617_0001
  7. 14/11/01 14:45:43 INFO impl.YarnClientImpl: Submitted application application_1414824189617_0001
  8. 14/11/01 14:45:43 INFO mapreduce.Job: The url to track the job: http://localhost:8088/proxy/application_1414824189617_0001/
  9. 14/11/01 14:45:43 INFO mapreduce.Job: Running job: job_1414824189617_0001
  10. 14/11/01 14:45:48 INFO mapreduce.Job: Job job_1414824189617_0001 running in uber mode : false
  11. 14/11/01 14:45:48 INFO mapreduce.Job:  map 0% reduce 0%
  12. 14/11/01 14:45:48 INFO mapreduce.Job: Job job_1414824189617_0001 failed with state FAILED due to: Application application_1414824189617_0001 failed 2 times due to AM Container for appattempt_1414824189617_0001_000002 exited with  exitCode: -1000 due to: File file:/usr/local/hadoop/home/hadoop/tmp/nm-local-dir/usercache/hadoop/appcache/application_1414824189617_0001/home/hadoop/tmp/nm-local-dir/nmPrivate/container_1414824189617_0001_02_000001.tokens does not exist
  13. .Failing this attempt.. Failing the application.
  14. 14/11/01 14:45:48 INFO mapreduce.Job: Counters: 0
复制代码

但是在Eclipse中运行正确,为什么??
系统是RedHat,以前用Ubuntu时没遇到过


已有(4)人评论

跳转到指定楼层
yoki 发表于 2014-11-1 16:51:00
求别沉啊啊啊啊
回复

使用道具 举报

bioger_hit 发表于 2014-11-1 16:52:01
把这个目录清空,或则你的环境重新初始化下,然后重启集群,然后运行程序。
file:/usr/local/hadoop/home/hadoop/tmp
回复

使用道具 举报

sstutu 发表于 2014-11-1 16:56:17
这个是你的临时目录吧,看看权限是否够

file:/usr/local/hadoop/home/hadoop/tmp
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条