hadoop ls命令不工作

cld4siwp  于 2021-05-30  发布在  Hadoop
关注(0)|答案(1)|浏览(392)

我能够在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>]
hujrc8aj

hujrc8aj1#

当使directory从根目录开始时,提到目录的完整路径。i、 e:/your/location/skalburg输入
对于ls命令,请尝试:
$hdfs dfs-ls/

相关问题