<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: JMX metric is too late to update. I need a check from you. in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/JMX-metric-is-too-late-to-update-I-need-a-check-from-you/m-p/192782#M65320</link>
    <description>&lt;P&gt;You are awesome enough to thank so much! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I was expecting just to see if the behaviour I see is normal but your explanation to me like teaching to fish instead of giving it. I have learned the procedure instead, how it worked.&lt;/P&gt;&lt;P&gt;Thanks again! &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Jul 2017 15:47:39 GMT</pubDate>
    <dc:creator>sedatkestepe</dc:creator>
    <dc:date>2017-07-26T15:47:39Z</dc:date>
    <item>
      <title>JMX metric is too late to update. I need a check from you.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/JMX-metric-is-too-late-to-update-I-need-a-check-from-you/m-p/192779#M65317</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am checking JMX metrics with a period of time to monitor the cluster health.&lt;/P&gt;&lt;P&gt;When I try to check my monitoring platform I saw that it is too late to update. The case is a dead datanode. I stop one of the datanode services on Ambari and expect to see below data to change from 0 to 1:&lt;/P&gt;&lt;P&gt;&lt;A href="http://namenodeaddress:50070/jmx?qry=Hadoop:service=NameNode,name=FSNamesystemState" target="_blank"&gt;http://namenodeaddress:50070/jmx?qry=Hadoop:service=NameNode,name=FSNamesystemState&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;{
    "name" : "Hadoop:service=NameNode,name=FSNamesystemState",
    "modelerType" : "org.apache.hadoop.hdfs.server.namenode.FSNamesystem",
    ...
    "NumDeadDataNodes" : 0,
    ...

...
  }&lt;/PRE&gt;&lt;P&gt;It was updated 6 minutes later. It is a very long time to take an action. However when I start the service again, it is updated from 1 to 0 as soon as service was started.&lt;/P&gt;&lt;P&gt;Can someone check it for me if this is the normal update time?&lt;/P&gt;&lt;P&gt;PS: I know Ambari is faster to detect. Probably it uses another method to detect dead nodes. I need to check this to continue parsing other metrics.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2017 15:56:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/JMX-metric-is-too-late-to-update-I-need-a-check-from-you/m-p/192779#M65317</guid>
      <dc:creator>sedatkestepe</dc:creator>
      <dc:date>2017-07-21T15:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: JMX metric is too late to update. I need a check from you.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/JMX-metric-is-too-late-to-update-I-need-a-check-from-you/m-p/192780#M65318</link>
      <description>&lt;P&gt;Follow-up comment... Any comments?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2017 20:21:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/JMX-metric-is-too-late-to-update-I-need-a-check-from-you/m-p/192780#M65318</guid>
      <dc:creator>sedatkestepe</dc:creator>
      <dc:date>2017-07-25T20:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: JMX metric is too late to update. I need a check from you.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/JMX-metric-is-too-late-to-update-I-need-a-check-from-you/m-p/192781#M65319</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/15282/skestepe.html" nodeid="15282"&gt;@Sedat Kestepe&lt;/A&gt;&lt;/P&gt;&lt;P&gt;- The Namenode determines whether a datanode dead or alive by using heartbeats. &lt;/P&gt;&lt;P&gt;- Each DataNode sends a Heartbeat message to the NameNode every 3 seconds (default value). &lt;/P&gt;&lt;P&gt;- This heartbeat interval is controlled by the &lt;STRONG&gt;"dfs.heartbeat.interval"&lt;/STRONG&gt; property defined in &lt;STRONG&gt;hdfs-site.xml&lt;/STRONG&gt; file.&lt;/P&gt;&lt;P&gt;- If a datanode dies, namenode waits for almost 10 mins before removing it from live nodes. &lt;/P&gt;&lt;P&gt;- The time period for determining whether a datanode is dead is calculated as &lt;/P&gt;&lt;PRE&gt;dfs.namenode.heartbeat.recheck-interval + 10 * 1000 * dfs.heartbeat.interval&lt;/PRE&gt;&lt;P&gt;
The default values for &lt;STRONG&gt;"dfs.namenode.heartbeat.recheck-interval"&lt;/STRONG&gt; is 300000 milliseconds(5 minutes) and &lt;STRONG&gt;dfs.heartbeat.interval&lt;/STRONG&gt; is "3 seconds"&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;
&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reference:&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;- &lt;A href="https://github.com/apache/hadoop/blob/release-2.7.3-RC1/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSConfigKeys.java#L212" target="_blank"&gt;https://github.com/apache/hadoop/blob/release-2.7.3-RC1/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSConfigKeys.java#L212&lt;/A&gt;&lt;/P&gt;&lt;P&gt;- &lt;A href="http://pe-kay.blogspot.com/2016/02/dead-datanode-detection.html" target="_blank"&gt;http://pe-kay.blogspot.com/2016/02/dead-datanode-detection.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2017 00:39:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/JMX-metric-is-too-late-to-update-I-need-a-check-from-you/m-p/192781#M65319</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-07-26T00:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: JMX metric is too late to update. I need a check from you.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/JMX-metric-is-too-late-to-update-I-need-a-check-from-you/m-p/192782#M65320</link>
      <description>&lt;P&gt;You are awesome enough to thank so much! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I was expecting just to see if the behaviour I see is normal but your explanation to me like teaching to fish instead of giving it. I have learned the procedure instead, how it worked.&lt;/P&gt;&lt;P&gt;Thanks again! &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2017 15:47:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/JMX-metric-is-too-late-to-update-I-need-a-check-from-you/m-p/192782#M65320</guid>
      <dc:creator>sedatkestepe</dc:creator>
      <dc:date>2017-07-26T15:47:39Z</dc:date>
    </item>
  </channel>
</rss>

