"Hadoop" Hadoop datanode node time-out setting

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.