Exception Hadoop无效输入异常

Exception Hadoop无效输入异常,exception,hadoop,input,hdfs,Exception,Hadoop,Input,Hdfs,org.apache.hadoop.mapreduce.lib.input.InvalidInputException:输入路径不存在:hdfs://localhost:9000/user/root/in 有人能告诉我到底是什么问题,我该如何解决?我是新用户错误 root@priyal-Inspiron-N5030:/home/priyal# hadoop dfs -copyFromLocal in /in root@priyal-Inspiron-N5030:/home/priyal# had

org.apache.hadoop.mapreduce.lib.input.InvalidInputException:输入路径不存在:hdfs://localhost:9000/user/root/in


有人能告诉我到底是什么问题,我该如何解决?我是新用户

错误

root@priyal-Inspiron-N5030:/home/priyal# hadoop dfs -copyFromLocal in /in
root@priyal-Inspiron-N5030:/home/priyal# hadoop jar /usr/local/hadoop/share/hadoop/mapreduce/hadoop-mapreduce-examples-2.6.0.jar wordcount in out

INFO client.RMProxy: Connecting to ResourceManager at /0.0.0.0:8032

INFO mapreduce.JobSubmitter: Cleaning up the staging area /tmp/hadoop-yarn/staging/root/.staging/job_1424175893740_0008
表示目标位置
/user/root/in
在您的HDFS中不是prsrent。您可以使用简单的web UI浏览文件系统

然后单击实用程序下拉菜单->浏览文件系统。并检查您的折叠式雇佣关系,即/user/root/in

如果它不存在,您可以使用命令创建文件夹

org.apache.hadoop.mapreduce.lib.input.InvalidInputException: Input path does not exist: hdfs://localhost:9000/user/root/in
现在尝试执行复制命令

hadoop dfs -mkdir hdfs://localhost:9000/user/root/in
希望这对您有所帮助:)

hadoop dfs -copyFromLocal /local/path/of/source/file hdfs://localhost:9000/user/root/in