正确命令应该为:
hadoop jar /hadoop-2.7.7/share/hadoop/mapreduce/sources hadoop-mapreduce-examples-2.7.7-sources.jar org.apache.hadoop.examples.WordCount /input/words.txt /output
注意:报错原因是因为忽略了前面的包路径,直接hadoop jar xxx.jar WordCount .....
正确命令应该为:
hadoop jar /hadoop-2.7.7/share/hadoop/mapreduce/sources hadoop-mapreduce-examples-2.7.7-sources.jar org.apache.hadoop.examples.WordCount /input/words.txt /output
注意:报错原因是因为忽略了前面的包路径,直接hadoop jar xxx.jar WordCount .....