您的位置:首页 > 运维架构

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

2017-06-03 14:03 537 查看
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  hadoop
相关文章推荐