Hadoop datanode node time-out setting
Datanode process death or network failure caused datanode not to communicate with Namenode,
Namenode will not immediately determine the node as death, after a period of time, this period is temporarily known as the timeout length.
The default timeout period for HDFs is 10 minutes + 30 seconds. If the definition time-out is timeout, the time-out is calculated as:
Timeout = 2 * heartbeat.recheck.interval + ten * dfs.heartbeat.interval.
The default Heartbeat.recheck.interval size is 5 minutes, and Dfs.heartbeat.interval defaults to 3 seconds.
It is important to note that the Hdfs-site.xml configuration file
The Heartbeat.recheck.interval unit is in milliseconds,
The Dfs.heartbeat.interval unit is in seconds.
So, for example, if Heartbeat.recheck.interval is set to 5000 (milliseconds), Dfs.heartbeat.interval is set to 3 (seconds, default), the total time-out is 40 seconds.
Parameter formatting in Hdfs-site.xml:
<property>
<name>heartbeat.recheck.interval</name>
<value>2000</value>
</property>
<property>
<name>dfs.heartbeat.interval</name>
<value>1</value>
</property>
"Hadoop" Hadoop datanode node time-out setting