我知道有一个萨米利亚头衔的问题,但我们问什么是不同的。我试过了
hduser@tong-VirtualBox:/usr/local/hadoop$ bin/hadoop dfs -copyFromLocal /tmp/Text /home/hduser/Text
我明白了:
DEPRECATED: Use of this script to execute hdfs command is deprecated.
Instead use the hdfs command for it.
15/10/14 10:15:21 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
copyFromLocal: `/home/hduser/Text': No such file or directory
但是,我有/home/hduser/text,并且我使用hdfs命令,这个错误意味着什么?我该怎么修
1条答案
按热度按时间mwg9r5ms1#
但是,我有/home/hduser/text,并且我使用hdfs命令,这个错误意味着什么?我该怎么修
/home/hduser/text不存在或语法不正确。对于以后的情况,请尝试以下操作:
hduser@tong-VirtualBox:/usr/local/hadoop$ bin/hadoop dfs -copyFromLocal /home/hduser/Text /tmp/Text
To get rid of warning - DEPRECATED: Use of this script to execute hdfs command is deprecated. Instead use the hdfs command for it.
hduser@tong-VirtualBox:/usr/local/hadoop$ hdfs dfs -copyFromLocal /home/hduser/Text /tmp/Text
```copyFromLocal:
Usage: hdfs dfs -copyFromLocal URI
Similar to put command, except that the source is restricted to a local file reference.
Options: