<?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: Do Metrics Monitor and HadoopTimelineMetricsSink retain metrics to emit while MetricsCollector is dead? Or, discard them? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Do-Metrics-Monitor-and-HadoopTimelineMetricsSink-retain/m-p/187440#M83353</link>
    <description>&lt;P&gt;Thanks, &lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay Kumar SenSharma&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You mean, for example, even if Metrics Collector is dead from 9 am to 11 am, after Metrics Collector recovers, Metrics Collector will receive all metrics from 9 am to 11 am, right?&lt;/P&gt;</description>
    <pubDate>Tue, 11 Sep 2018 13:57:58 GMT</pubDate>
    <dc:creator>toide</dc:creator>
    <dc:date>2018-09-11T13:57:58Z</dc:date>
    <item>
      <title>Do Metrics Monitor and HadoopTimelineMetricsSink retain metrics to emit while MetricsCollector is dead? Or, discard them?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Do-Metrics-Monitor-and-HadoopTimelineMetricsSink-retain/m-p/187438#M83351</link>
      <description>&lt;P&gt;Do Metrics Monitor and HadoopTimelineMetricsSink retain metrics to emit while MetricsCollector is dead? Or, discard them?&lt;/P&gt;&lt;P&gt;If retaining metrics, how long?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Sep 2018 13:37:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Do-Metrics-Monitor-and-HadoopTimelineMetricsSink-retain/m-p/187438#M83351</guid>
      <dc:creator>toide</dc:creator>
      <dc:date>2018-09-11T13:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: Do Metrics Monitor and HadoopTimelineMetricsSink retain metrics to emit while MetricsCollector is dead? Or, discard them?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Do-Metrics-Monitor-and-HadoopTimelineMetricsSink-retain/m-p/187439#M83352</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/55170/toide.html" nodeid="55170"&gt;@Takefumi Oide&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Yes, The  "HadoopTimelineMetricsSink" are actually the sink code running inside the components like DataNode/NameNode/NodeManager/ResourceManagers ...etc  Which reads the "/etc/hadoop/conf/hadoop-metrics2.properties" and based on the INFO available in this file they know where the Metrics Collector should be running and the port (default 6188) and then they will start emitting the data to the Metrics Collector.  If the Metrics Collector is down then we will see Connection Refused messages in the components logs  but the Sink will keep doing it's job until the Collector Comes online &amp;amp; become available.&lt;/P&gt;&lt;P&gt;The logging for Metrics Collector will be ignored (suppressed after 20 attempts) to avoid duplicate logging on the component logs.&lt;/P&gt;&lt;PRE&gt;WARN  timeline.HadoopTimelineMetricsSink (HadoopTimelineMetricsSink.java:putMetrics(356)) - Unable to send metrics to collector by address:http://XXX.example.com:6188/ws/v1/timeline/metrics
INFO  timeline.HadoopTimelineMetricsSink (AbstractTimelineMetricsSink.java:getCurrentCollectorHost(278)) - No live collector to send metrics to. Metrics to be sent will be discarded. This message will be skipped for the next 20 times.&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Sep 2018 13:44:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Do-Metrics-Monitor-and-HadoopTimelineMetricsSink-retain/m-p/187439#M83352</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2018-09-11T13:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: Do Metrics Monitor and HadoopTimelineMetricsSink retain metrics to emit while MetricsCollector is dead? Or, discard them?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Do-Metrics-Monitor-and-HadoopTimelineMetricsSink-retain/m-p/187440#M83353</link>
      <description>&lt;P&gt;Thanks, &lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay Kumar SenSharma&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You mean, for example, even if Metrics Collector is dead from 9 am to 11 am, after Metrics Collector recovers, Metrics Collector will receive all metrics from 9 am to 11 am, right?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Sep 2018 13:57:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Do-Metrics-Monitor-and-HadoopTimelineMetricsSink-retain/m-p/187440#M83353</guid>
      <dc:creator>toide</dc:creator>
      <dc:date>2018-09-11T13:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: Do Metrics Monitor and HadoopTimelineMetricsSink retain metrics to emit while MetricsCollector is dead? Or, discard them?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Do-Metrics-Monitor-and-HadoopTimelineMetricsSink-retain/m-p/187441#M83354</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/55170/toide.html" nodeid="55170"&gt;@Takefumi Oide&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Sink uses small caches and there are some settings like "maxRowCacheSize" and "sendInterval" which you can find inside the "Advanced hadoop-metrics2.properties" in ambari UI or in the relevant sink properties file.&lt;BR /&gt;&lt;BR /&gt;Reference Links: &lt;A href="https://github.com/apache/ambari/blob/release-2.7.0/ambari-metrics/ambari-metrics-common/src/main/java/org/apache/hadoop/metrics2/sink/timeline/AbstractTimelineMetricsSink.java#L311-L357" target="_blank"&gt;https://github.com/apache/ambari/blob/release-2.7.0/ambari-metrics/ambari-metrics-common/src/main/java/org/apache/hadoop/metrics2/sink/timeline/AbstractTimelineMetricsSink.java#L311-L357&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Before directly posting the data based on "maxRowCacheSize" to AMS collector the data is cached for a small time until cache is full the "sendInterval" can also be found as shows in the above code:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://github.com/apache/ambari/blob/release-2.7.0/ambari-metrics/ambari-metrics-hadoop-sink/src/main/java/org/apache/hadoop/metrics2/sink/timeline/HadoopTimelineMetricsSink.java#L140-L142" target="_blank"&gt;https://github.com/apache/ambari/blob/release-2.7.0/ambari-metrics/ambari-metrics-hadoop-sink/src/main/java/org/apache/hadoop/metrics2/sink/timeline/HadoopTimelineMetricsSink.java#L140-L142&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/55170/toide.html" nodeid="55170"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 11 Sep 2018 14:09:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Do-Metrics-Monitor-and-HadoopTimelineMetricsSink-retain/m-p/187441#M83354</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2018-09-11T14:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: Do Metrics Monitor and HadoopTimelineMetricsSink retain metrics to emit while MetricsCollector is dead? Or, discard them?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Do-Metrics-Monitor-and-HadoopTimelineMetricsSink-retain/m-p/187442#M83355</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/55170/toide.html" nodeid="55170"&gt;@Takefumi Oide&lt;/A&gt;   Also please have a look at the default value for "MAX_METRIC_ROW_CACHE_SIZE" (maxRowCacheSize, default value 10000) , "TimelineMetricsCache.MAX_RECS_PER_NAME_DEFAULT" and  "METRICS_SEND_INTERVAL (default value 59000 millisecond means ~ 1 minute)"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;A href="https://github.com/apache/ambari/blob/release-2.7.0/ambari-metrics/ambari-metrics-common/src/main/java/org/apache/hadoop/metrics2/sink/timeline/cache/TimelineMetricsCache.java#L41-L42" target="_blank"&gt;https://github.com/apache/ambari/blob/release-2.7.0/ambari-metrics/ambari-metrics-common/src/main/java/org/apache/hadoop/metrics2/sink/timeline/cache/TimelineMetricsCache.java#L41-L42&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://github.com/apache/ambari/blob/release-2.7.0/ambari-metrics/ambari-metrics-hadoop-sink/src/main/java/org/apache/hadoop/metrics2/sink/timeline/HadoopTimelineMetricsSink.java#L140-L143" target="_blank"&gt;https://github.com/apache/ambari/blob/release-2.7.0/ambari-metrics/ambari-metrics-hadoop-sink/src/main/java/org/apache/hadoop/metrics2/sink/timeline/HadoopTimelineMetricsSink.java#L140-L143&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/55170/toide.html" nodeid="55170"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 11 Sep 2018 14:17:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Do-Metrics-Monitor-and-HadoopTimelineMetricsSink-retain/m-p/187442#M83355</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2018-09-11T14:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: Do Metrics Monitor and HadoopTimelineMetricsSink retain metrics to emit while MetricsCollector is dead? Or, discard them?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Do-Metrics-Monitor-and-HadoopTimelineMetricsSink-retain/m-p/187443#M83356</link>
      <description>&lt;P&gt;Thank you for your detailed comment!&lt;/P&gt;</description>
      <pubDate>Tue, 11 Sep 2018 17:04:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Do-Metrics-Monitor-and-HadoopTimelineMetricsSink-retain/m-p/187443#M83356</guid>
      <dc:creator>toide</dc:creator>
      <dc:date>2018-09-11T17:04:07Z</dc:date>
    </item>
  </channel>
</rss>

