问题如题所示,你可能无法访问到HDFS中的数据。

具体如下:

产生这个问题的原因:
你在非DataNode上执行HDFS的访问命令:

如果你在一个DataNode上执行命令,则一切正常:

————————————
Done。

2 thoughts on “HDFS error:Warning: fs.defaultFS is not set when running “ls” command.”

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

隐藏
变装