0 votes
in HDFS by

How NameNode handles DataNode failures?

1 Answer

0 votes
by
NameNode periodically receives a Heartbeat and a Blockreport from each of the DataNodes in the cluster. Receipt of a Heartbeat implies that the DataNode is functioning properly. A Blockreport contains a list of all blocks on a DataNode. When NameNode notices that it has not recieved a hearbeat message from a data node after a certain amount of time, the data node is marked as dead. Since blocks will be under replicated the system begins replicating the blocks that were stored on the dead datanode. The NameNode Orchestrates the replication of data blocks from one datanode to another. The replication data transfer happens directly between datanodes and the data never passes through the namenode.

Related questions

0 votes
asked Jul 28, 2021 in HDFS by SakshiSharma
+1 vote
asked Oct 29, 2022 in Hadoop by SakshiSharma
...