1
- 我已经创建了输入文本文件test.txt并把它作为HDFS /user/yogesh/Input/test.txt
- 创建的输出路径上HDFS为/用户/约杰什/输出
- 创建于本地/home/yogesh/WordCount.jar jar文件,并提交当地MR的工作,这样的:
hadoop jar /home/yogesh/WordCount.jar WordCount /user/yogesh/Input/test.txt /user/yogesh/Output/output1
Exception in thread "main"
org.apache.hadoop.mapreduce.lib.input.InvalidInputException:Input path does not exist: hdfs:host/user/yogesh/WordCount.
hdfs:host/user/yogesh/- 是我的HDFS目录。我无法理解为什么这个MR作业在HDFS中寻找代码以及如何解决这个错误。