hadoop fs -ls results in “no such file or directory”

来源:互联网 发布:海康威视有线连接网络 编辑:程序博客网 时间:2024/05/23 23:10

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 /

  • https://stackoverflow.com/questions/28241251/hadoop-fs-ls-results-in-no-such-file-or-directory
原创粉丝点击