<?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: Ambari Metrics Service Check Failed in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Metrics-Service-Check-Failed/m-p/144184#M48354</link>
    <description>&lt;A rel="user" href="https://community.cloudera.com/users/14787/amazon20062007.html" nodeid="14787"&gt;@Zhao Chaofeng&lt;/A&gt;&lt;P&gt;Can you share ambari metrics collector log &amp;amp; conf? &lt;/P&gt;&lt;P&gt;/var/log/ambari-metrics-collector/ambari-metrics-collector.log&lt;/P&gt;&lt;P&gt;/etc/conf/ambari-metrics-collector/conf? &lt;/P&gt;</description>
    <pubDate>Sat, 10 Dec 2016 00:46:37 GMT</pubDate>
    <dc:creator>avijayan</dc:creator>
    <dc:date>2016-12-10T00:46:37Z</dc:date>
    <item>
      <title>Ambari Metrics Service Check Failed</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Metrics-Service-Check-Failed/m-p/144174#M48344</link>
      <description>&lt;PRE&gt;2016-12-08 19:30:35,118 - Using hadoop conf dir: /usr/isdp/current/hadoop-client/conf
2016-12-08 19:30:35,120 - checked_call['hostid'] {}
2016-12-08 19:30:35,184 - checked_call returned (0, 'a8c0366f')
2016-12-08 19:30:35,184 - Ambari Metrics service check was started.
2016-12-08 19:30:35,188 - Generated metrics:
{
  "metrics": [
    {
      "metricname": "AMBARI_METRICS.SmokeTest.FakeMetric",
      "appid": "amssmoketestfake",
      "hostname": "bigdata002.istuary.com",
      "timestamp": 1481196635000,
      "starttime": 1481196635000,
      "metrics": {
        "1481196635000": 0.380131946063,
        "1481196636000": 1481196635000
      }
    }
  ]
}
2016-12-08 19:30:35,188 - Connecting (POST) to bigdata002.istuary.com:6188/ws/v1/timeline/metrics/
2016-12-08 19:30:50,232 - Connection failed. Next retry in 15 seconds.
2016-12-08 19:30:50,234 - Generated metrics:
{
  "metrics": [
    {
      "metricname": "AMBARI_METRICS.SmokeTest.FakeMetric",
      "appid": "amssmoketestfake",
      "hostname": "bigdata002.istuary.com",
      "timestamp": 1481196650000,
      "starttime": 1481196650000,
      "metrics": {
        "1481196650000": 0.380131946063,
        "1481196651000": 1481196650000
      }
    }
  ]
}
2016-12-08 19:30:50,234 - Connecting (POST) to bigdata002.istuary.com:6188/ws/v1/timeline/metrics/
2016-12-08 19:31:05,250 - Connection failed. Next retry in 15 seconds.
2016-12-08 19:31:05,251 - Generated metrics:
{
  "metrics": [
    {
      "metricname": "AMBARI_METRICS.SmokeTest.FakeMetric",
      "appid": "amssmoketestfake",
      "hostname": "bigdata002.istuary.com",
      "timestamp": 1481196665000,
      "starttime": 1481196665000,
      "metrics": {
        "1481196665000": 0.380131946063,
        "1481196666000": 1481196665000
      }
    }
  ]
}
2016-12-08 19:31:05,251 - Connecting (POST) to bigdata002.istuary.com:6188/ws/v1/timeline/metrics/
2016-12-08 19:31:20,266 - Connection failed. Next retry in 15 seconds.
Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/common-services/AMBARI_METRICS/0.1.0/package/scripts/service_check.py", line 184, in &amp;lt;module&amp;gt;
    AMSServiceCheck().execute()
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 280, in execute
    method(env)
  File "/usr/lib/python2.6/site-packages/ambari_commons/os_family_impl.py", line 89, in thunk
    return fn(*args, **kwargs)
  File "/var/lib/ambari-agent/cache/common-services/AMBARI_METRICS/0.1.0/package/scripts/service_check.py", line 102, in service_check
    raise Fail("Metrics were not saved. Service check has failed. "
resource_management.core.exceptions.Fail: Metrics were not saved. Service check has failed. 
Connection failed.&lt;/PRE&gt;</description>
      <pubDate>Thu, 08 Dec 2016 20:25:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Metrics-Service-Check-Failed/m-p/144174#M48344</guid>
      <dc:creator>amazon20062007</dc:creator>
      <dc:date>2016-12-08T20:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Metrics Service Check Failed</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Metrics-Service-Check-Failed/m-p/144175#M48345</link>
      <description>&lt;P&gt;my ambari version is 2.4.1, but I can not find where comes wrong.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2016 20:26:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Metrics-Service-Check-Failed/m-p/144175#M48345</guid>
      <dc:creator>amazon20062007</dc:creator>
      <dc:date>2016-12-08T20:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Metrics Service Check Failed</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Metrics-Service-Check-Failed/m-p/144176#M48346</link>
      <description>&lt;P&gt;What is the output of the following command.  Is that package shows same version in all the hosts.&lt;/P&gt;&lt;PRE&gt;rpm -qa | ambari-metrics&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2016 20:29:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Metrics-Service-Check-Failed/m-p/144176#M48346</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-12-08T20:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Metrics Service Check Failed</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Metrics-Service-Check-Failed/m-p/144177#M48347</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/14787/amazon20062007.html"&gt;Zhao Chaofeng&lt;/A&gt;&lt;/P&gt;&lt;P&gt;As per the code:  &lt;A href="https://github.com/apache/ambari/blob/release-2.4.1/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/scripts/service_check.py#L101-L103" target="_blank"&gt;https://github.com/apache/ambari/blob/release-2.4.1/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/scripts/service_check.py#L101-L103&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ambari will retry couple of times (AMS_CONNECT_TRIES=30) before showing that error.   So can you pelase check that there is no connectivity issue and you are able to access it :&lt;/P&gt;&lt;PRE&gt;Connecting (POST) to bigdata002.istuary.com:6188/ws/v1/timeline/metrics/&lt;/PRE&gt;&lt;P&gt;The service check script runs from one of the healthy node present in the cluster (which might not be ambari server always). So from that host where the service_check ran last time can you open the mentioned URL. It should be accessible&lt;STRONG&gt; "bigdata002.istuary.com:6188".&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2016 20:45:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Metrics-Service-Check-Failed/m-p/144177#M48347</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-12-08T20:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Metrics Service Check Failed</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Metrics-Service-Check-Failed/m-p/144178#M48348</link>
      <description>&lt;P&gt;Yes, you are right, but I deploy ambari on one host, so I can not find why there is some wrong with the network.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2016 21:04:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Metrics-Service-Check-Failed/m-p/144178#M48348</guid>
      <dc:creator>amazon20062007</dc:creator>
      <dc:date>2016-12-08T21:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Metrics Service Check Failed</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Metrics-Service-Check-Failed/m-p/144179#M48349</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/14787/amazon20062007.html"&gt;Zhao Chaofeng&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/14787/amazon20062007.html"&gt; 
&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Is the following port opened on that host ?  Or do we see any error in the AMS logs?&lt;/P&gt;&lt;PRE&gt;netstat -tnlpa | grep 6188&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2016 21:13:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Metrics-Service-Check-Failed/m-p/144179#M48349</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-12-08T21:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Metrics Service Check Failed</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Metrics-Service-Check-Failed/m-p/144180#M48350</link>
      <description>&lt;P&gt;6188 port is ok, AMS logs has some error, like this in /var/log/ambari-metrics-monitor/ambari-metrics-monitor.out:&lt;/P&gt;&lt;P&gt;2016-12-08 19:50:34,611 [INFO] controller.py:56 - Running Controller thread: Thread-1
2016-12-08 19:50:34,611 [INFO] emitter.py:55 - Running Emitter thread: Thread-2
2016-12-08 19:50:34,611 [INFO] emitter.py:75 - Nothing to emit, resume waiting.
2016-12-08 19:51:34,614 [WARNING] emitter.py:84 - Error sending metrics to server. [Errno 111] Connection refused
2016-12-08 19:51:34,614 [WARNING] emitter.py:90 - Retrying after 5 ...
2016-12-08 19:51:39,614 [WARNING] emitter.py:84 - Error sending metrics to server. [Errno 111] Connection refused
2016-12-08 19:51:39,614 [WARNING] emitter.py:90 - Retrying after 5 ...
2016-12-08 19:51:44,615 [WARNING] emitter.py:84 - Error sending metrics to server. [Errno 111] Connection refused
2016-12-08 19:51:44,615 [WARNING] emitter.py:90 - Retrying after 5 ...
2016-12-08 19:52:49,616 [WARNING] emitter.py:84 - Error sending metrics to server. [Errno 111] Connection refused
2016-12-08 19:52:49,616 [WARNING] emitter.py:90 - Retrying after 5 ...
2016-12-08 19:52:54,616 [WARNING] emitter.py:84 - Error sending metrics to server. [Errno 111] Connection refused
2016-12-08 19:52:54,617 [WARNING] emitter.py:90 - Retrying after 5 ...
2016-12-08 19:52:59,618 [WARNING] emitter.py:84 - Error sending metrics to server. [Errno 111] Connection refused
2016-12-08 19:52:59,618 [WARNING] emitter.py:90 - Retrying after 5 ...&lt;/P&gt;&lt;P&gt;others are ok.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2016 21:17:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Metrics-Service-Check-Failed/m-p/144180#M48350</guid>
      <dc:creator>amazon20062007</dc:creator>
      <dc:date>2016-12-08T21:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Metrics Service Check Failed</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Metrics-Service-Check-Failed/m-p/144181#M48351</link>
      <description>&lt;P&gt;ERROR org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryServer: RECEIVED SIGNAL 15: SIGTERM&lt;/P&gt;&lt;P&gt;And in ambari-metrics-collector.log there is above error.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2016 21:18:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Metrics-Service-Check-Failed/m-p/144181#M48351</guid>
      <dc:creator>amazon20062007</dc:creator>
      <dc:date>2016-12-08T21:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Metrics Service Check Failed</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Metrics-Service-Check-Failed/m-p/144182#M48352</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/14787/amazon20062007.html"&gt;Zhao Chaofeng&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Looks like your AMS is getting down. Can you check if it is happening frequently.   Sometimes we have seens that if it has insufficient memory then it is killed and restarted again.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2016 22:03:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Metrics-Service-Check-Failed/m-p/144182#M48352</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-12-08T22:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Metrics Service Check Failed</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Metrics-Service-Check-Failed/m-p/144183#M48353</link>
      <description>&lt;P&gt;I know the reason, because 'timeline.metrics.service.webapp.address' in the ams-site.xml file is not be modified. Why?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2016 09:14:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Metrics-Service-Check-Failed/m-p/144183#M48353</guid>
      <dc:creator>amazon20062007</dc:creator>
      <dc:date>2016-12-09T09:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Metrics Service Check Failed</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Metrics-Service-Check-Failed/m-p/144184#M48354</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/14787/amazon20062007.html" nodeid="14787"&gt;@Zhao Chaofeng&lt;/A&gt;&lt;P&gt;Can you share ambari metrics collector log &amp;amp; conf? &lt;/P&gt;&lt;P&gt;/var/log/ambari-metrics-collector/ambari-metrics-collector.log&lt;/P&gt;&lt;P&gt;/etc/conf/ambari-metrics-collector/conf? &lt;/P&gt;</description>
      <pubDate>Sat, 10 Dec 2016 00:46:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Metrics-Service-Check-Failed/m-p/144184#M48354</guid>
      <dc:creator>avijayan</dc:creator>
      <dc:date>2016-12-10T00:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Metrics Service Check Failed</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Metrics-Service-Check-Failed/m-p/144185#M48355</link>
      <description>&lt;P&gt;Thank you all, and I have fix the bug in my program. Because I cutom my stack but I do not change the stack_advisor.py that corresponding with the stack.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Dec 2016 11:00:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-Metrics-Service-Check-Failed/m-p/144185#M48355</guid>
      <dc:creator>amazon20062007</dc:creator>
      <dc:date>2016-12-10T11:00:23Z</dc:date>
    </item>
  </channel>
</rss>

