mapreduce作业无法在windows中运行(cygwin)

s1ag04yj  于 2021-06-04  发布在  Hadoop
关注(0)|答案(1)|浏览(225)

我已经在windows中安装了cygwin,并在其上配置了hadoop0.20.0,我可以在eclipse中成功地运行wordcount项目,但是当我在hadoop-…*-example.jar中运行wordcount时,它抛出以下错误

3/06/28 07:32:51 INFO input.FileInputFormat: Total input paths to process : 1
13/06/28 07:32:52 INFO mapred.JobClient: Running job: job_201306280622_0002
13/06/28 07:32:53 INFO mapred.JobClient:  map 0% reduce 0%
13/06/28 07:32:57 INFO mapred.JobClient: Task Id :  attempt_201306280622_0002_m_000002_0, Status : FAILED
Error initializing attempt_201306280622_0002_m_000002_0:
org.apache.hadoop.util.Shell$ExitCodeException: //job.jar: invalid mode: `jar'
Try `//job.jar --help' for more information.

    at org.apache.hadoop.util.Shell.runCommand(Shell.java:195)
    at org.apache.hadoop.util.Shell.run(Shell.java:134)
    at org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java: 286)

有什么问题吗

nimxete2

nimxete21#

你的命令在我看来很好。尝试用文件名指定输入路径。我希望这能解决你的问题。

bin/hadoop jar hadoop-0.20.0-examples.jar wordcount /user/input/input_file.txt /user/output

相关问题