hadoop invalidinput异常

vx6bjr1n  于 2021-06-03  发布在  Hadoop
关注(0)|答案(1)|浏览(456)
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

org.apache.hadoop.mapreduce.lib.input.invalidinputexception:输入路径不存在:hdfs://localhost:9000/user/root/in
有人能告诉我到底是什么问题吗?我该怎么解决?我是新用户

lrl1mhuk

lrl1mhuk1#

错误

org.apache.hadoop.mapreduce.lib.input.InvalidInputException: Input path does not exist: hdfs://localhost:9000/user/root/in

说目的地 /user/root/in 在你的hdfs中没有prsrent。您可以使用简单的web ui浏览文件系统。
http://localhost:50070/
然后单击实用程序下拉菜单->浏览文件系统。并检查您的folderr hirerchy,即/user/root/in
如果不存在,可以使用命令创建文件夹

hadoop dfs -mkdir hdfs://localhost:9000/user/root/in

现在尝试执行copy命令

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

希望这能帮到你:)

相关问题