我能够在hdfs中创建目录,但是当我提交'ls'命令时,它给出了下面提到的错误。当我给出bin/hadoop dfs–ls/时,我也遇到了同样的错误。我错过了什么?
hduser@Server-8-22:/usr/local/hadoop$ bin/hadoop fs -mkdir skalburginput
Warning: $HADOOP_HOME is deprecated.
hduser@Server-8-22:/usr/local/hadoop$ bin/hadoop fs -mkdir skalburgoutput
Warning: $HADOOP_HOME is deprecated.
hduser@Server-8-22:/usr/local/hadoop$ bin/hadoop fs –ls
Warning: $HADOOP_HOME is deprecated.
ls: Unknown command
Usage: java FsShell
[-ls <path>]
[-lsr <path>]
[-du <path>]
[-dus <path>]
[-count[-q] <path>]
[-mv <src> <dst>]
1条答案
按热度按时间hujrc8aj1#
当使directory从根目录开始时,提到目录的完整路径。i、 e:/your/location/skalburg输入
对于ls命令,请尝试:
$hdfs dfs-ls/