./bin/hdfs dfs -put ./etc/hadoop/*.xml input失败提示put: `input': No such file or directory
时间: 2023-12-23 13:04:22 浏览: 93
这个错误提示表示当前目录下没有名为“input”的文件或目录。请确认当前目录是否正确,或者在命令中指定准确的文件路径。例如,如果要将所有Hadoop配置文件上传到名为“input”的HDFS目录中,可以使用以下命令:
./bin/hdfs dfs -put ./etc/hadoop/*.xml /input/
相关问题
./bin/hdfs dfs -put ./etc/hadoop/*.xml input
As an AI language model, I don't have access to your local file system or Hadoop cluster. However, I can explain the meaning of the command you have provided.
The command "./bin/hdfs dfs -put ./etc/hadoop/*.xml input" is used to copy all the XML files located in the "./etc/hadoop/" directory to the "input" directory in HDFS (Hadoop Distributed File System).
Here is the breakdown of the command:
- "./bin/hdfs": This specifies the path to the Hadoop Distributed File System command-line interface binary file.
- "dfs": This is the subcommand used to interact with the HDFS.
- "-put": This is the command used to copy files from the local file system to HDFS.
- "./etc/hadoop/*.xml": This specifies the path to all the XML files located in the "./etc/hadoop/" directory. The "*" character is used to match any file name with the ".xml" extension.
- "input": This specifies the destination directory in HDFS where the files will be copied to.
./bin/hdfs dfs -mkdir -p /user/hadoop
这是一个Hadoop命令,用于在HDFS上创建一个目录。具体命令为:./bin/hdfs dfs -mkdir -p /user/hadoop。
其中,-mkdir表示创建目录的命令,-p表示如果父目录不存在则创建父目录,/user/hadoop是要创建的目录路径。