Exception in thread "main" org.apache.hadoop.mapreduce.lib.input.InvalidInputException:
时间: 2023-08-28 08:09:27 浏览: 254
Exception in thread "main" org.apache.hadoop.mapreduce.lib.input.InvalidInputException:
回答: 这个错误通常是由于输入路径不存在导致的。根据引用\[2\]的解释,当使用Eclipse运行MapReduce程序时,默认的参数是单机参数,而不是HDFS目录。因此,如果输入路径在HDFS中不存在,就会出现这个错误。解决这个问题的方法是在项目的src下加入core-site.xml和hdfs-site.xml两个文件,并将它们复制到WordCount项目的src文件夹中。这样,程序就能正确读取HDFS中的输入路径了。
#### 引用[.reference_title]
- *1* *3* [Exception in thread "main" org.apache.hadoop.mapred.InvalidJobConfException: Output directory not se](https://blog.csdn.net/mtj66/article/details/52644800)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [错误Exception in thread “main“ org.apache.hadoop.mapreduce.lib.input.InvalidInputException: Input ...](https://blog.csdn.net/m0_60318777/article/details/121398932)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文