下面是我复制的一段代码:
$ bin/hadoop jar hadoop-0.20.2-examples.jar wordcount input output
13/11/23 02:13:44 INFO input.FileInputFormat: Total input paths to process : 1
13/11/23 02:13:45 INFO mapred.JobClient: Running job: job_201311230212_0002
13/11/23 02:13:46 INFO mapred.JobClient: map 0% reduce 0%
13/11/23 02:13:54 INFO mapred.JobClient: Task Id : attempt_201311230212_0002_m_000002_0, Status : FAILED
java.io.FileNotFoundException: File C:/tmp/hadoop-SYSTEM/mapred/local/taskTracker/jobcache/job_201311230212_0002/attempt_201311230212_0002_m_000002_0/work/tmp does not exist.
at org.apache.hadoop.fs.RawLocalFileSystem.getFileStatus(RawLocalFileSystem.java:361)
at org.apache.hadoop.fs.FilterFileSystem.getFileStatus(FilterFileSystem.java:245)
at org.apache.hadoop.mapred.TaskRunner.setupWorkDir(TaskRunner.java:519)
at org.apache.hadoop.mapred.Child.main(Child.java:155)
引用 楼主 zql_cckj 的回复:下面是我复制的一段代码:
$ bin/hadoop jar hadoop-0.20.2-examples.jar wordcount input output
13/11/23 02:13:44 INFO input.FileInputFormat: Total input paths to process : 1
13/11/23 02:13:45 INFO mapred.JobClient: Running job: job_201311230212_0002
13/11/23 02:13:46 INFO mapred.JobClient: map 0% reduce 0%
13/11/23 02:13:54 INFO mapred.JobClient: Task Id : attempt_201311230212_0002_m_000002_0, Status : FAILED
java.io.FileNotFoundException: File C:/tmp/hadoop-SYSTEM/mapred/local/taskTracker/jobcache/job_201311230212_0002/attempt_201311230212_0002_m_000002_0/work/tmp does not exist.
at org.apache.hadoop.fs.RawLocalFileSystem.getFileStatus(RawLocalFileSystem.java:361)
at org.apache.hadoop.fs.FilterFileSystem.getFileStatus(FilterFileSystem.java:245)
at org.apache.hadoop.mapred.TaskRunner.setupWorkDir(TaskRunner.java:519)
at org.apache.hadoop.mapred.Child.main(Child.java:155)
你用hdfs上的文件系统目录试下呢