Hadoop UI shows only one Datanode

前端 未结 7 665
刺人心
刺人心 2021-01-19 17:13

I\'ve started hadoop cluster composed of on master and 4 slave nodes.

Configuration seems ok:

hduser@ubuntu-amd64:/usr/local/hadoop$ ./bin/hdfs dfsadmin -rep

7条回答
  •  醉酒成梦
    2021-01-19 17:38

    Sorry, feels like it's been a time. But still I'd like to share my answer: the root cause is from hadoop/etc/hadoop/hdfs-site.xml: the xml file has a property named dfs.datanode.data.dir. If you set all the datanodes with the same name, then hadoop is assuming the cluster has only one datanode. So the proper way of doing it is naming every datanode with a unique name:

    Regards, YUN HANXUAN

提交回复
热议问题