我可以在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>]
答案 0 :(得分:2)
制作目录时从根目录开始提及目录的完整路径。 即: /你的/位置/ skalburginput
对于ls命令,请尝试:
$ hdfs dfs -ls /