当前位置: 代码迷 >> Eclipse >> eclipse中运行hadoop程序出现Input path does not exist有关问题
  详细解决方案

eclipse中运行hadoop程序出现Input path does not exist有关问题

热度:49   发布时间:2016-04-23 01:21:35.0
eclipse中运行hadoop程序出现Input path does not exist问题
[size=xx-large][size=small]在eclipse里运行程序时出现Exception in thread "main" org.apache.hadoop.mapreduce.lib.input.InvalidInputException: Input path does not exist: hdfs://localhost:9000/user/hcyhehe/input 错误时说明找不到输入文件,而且输入的路径感觉一点问题都没有就是按照别人的帖子的正确路径运行的,结果一直报错,在hdfs中也能查看到这个路径下的文件确实存在,后来才发现是我复制别人的地址在其上稍作改动的结果,建议在命令行中将刚刚上传到hdfs中的文件夹用命令bin/hadoop fs -rmr input 将刚刚上传的文件夹整个删除,这时命令行会出现你删除input的具体路径如:Deleted hdfs://localhost:9000/user/hcyhehe/input
将从hdfs开始的确切地址复制到你的eclipse中运行,,,之后对比我复制别人的和我复制自己机器的地址是完全一模一样的,但复制别人的就是出错不知道为什么。
[/size][/size][size=medium][/size]
  相关解决方案