ubuntu@xad101-master:~$ hadoop fs -ls 这样事不对的
ubuntu@101-master:~$ hadoop fs -ls /
- the reason you are seeing the error is ls: ‘.’: No such file or directory because hadoop is looking for this path /home/ubuntu, it seems like this path doesn’t exist in hdfs.
The reason why this command:
ubuntu@101-master:~$ hadoop fs -ls hdfs://101-master:50000/
is working because, you have explicitly specified [path] and is the root of the hdfs. You can also do the same using this:
ubuntu@101-master:~$ hadoop fs -ls /