hdfs data node disconnected from namenode

前端 未结 4 532
清歌不尽
清歌不尽 2021-01-02 16:07

I get from time to time the following errors in cloudera manager:

This DataNode is not connected to one or more of its NameNode(s). 

and

相关标签:
4条回答
  • 2021-01-02 17:01

    Hadoop uses specific ports to communicate between the DataNode and the NameNode. It could be that a firewall is blocking those specific ports. Check the default ports in the Cloudera WebSite and test the connectivity to the NameNode with specific ports.

    0 讨论(0)
  • 2021-01-02 17:07

    I realize you took some steps to test this, but intermittent disconnects still make it sound like a Connectivity issue.

    If nodes really don't come back after a disconnect, that may be a configuration issue, which could well be completely independent from the reason why they disconnect in the first place.

    0 讨论(0)
  • 2021-01-02 17:08

    If you're using Linux then please make sure that you have configured these properties correctly:

    1. Disable SELINUX

    type the command getenforce on CLI and if it shows enforcing, means it is enabled. Change it fro /etc/selinux/config file.

    1. Disable Firewall

    2. Make sure you have NTP service installed.

    3. Make sure your server can SSH to all client nodes.

    4. Make sure all the nodes have FQDN(Fully Qualified Domain Name) and have an entry in /etc/hosts with name and IP.

    If these settings are right in the place then please attach the log of any of your datanode which got disconnected.

    0 讨论(0)
  • 2021-01-02 17:09

    I ran into this error

    "This DataNode is not connected to one or more of its NameNode(s). "

    and I solved it by turning off safe mode and restart HDFS service

    0 讨论(0)
提交回复
热议问题