copyfromlocal:`/user/hduser/gutenberg':没有这样的文件或目录

lb3vh1jj  于 2021-06-03  发布在  Hadoop
关注(0)|答案(3)|浏览(311)

我跟随迈克尔·诺尔的向导到目前为止,但被困在这里。

hduser@ubuntu:/usr/local/hadoop$ bin/hadoop dfs -copyFromLocal /tmp/gutenberg /user/hduser/gutenberg
DEPRECATED: Use of this script to execute hdfs command is deprecated.
Instead use the hdfs command for it.

13/11/11 23:24:13 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
copyFromLocal: `/user/hduser/gutenberg': No such file or directory

hduser@ubuntu:/usr/local/hadoop$

我尝试过用“y”重新格式化名称节点,但每次对任意文件夹名称都得到相同的结果。
有什么想法吗?

aurhwmvo

aurhwmvo1#

hadoop 2.4.1版

hadoop fs -mkdir -p /user/hduser/sample
li9yvcax

li9yvcax2#

对于hadoop 2.6.0:
用法:hadoop fs-mkdir路径
例子:
hadoop/bin fs-mkdir/user/hduser
裁判:http://hortonworks.com/hadoop-tutorial/using-commandline-manage-files-hdfs/

hgncfbus

hgncfbus3#

使用如下命令解决:

hduser@ubuntu:/usr/local/hadoop$ hdfs dfs -mkdir -p /user/hduser

相关问题