<?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 collector restarting again and again in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/ambari-metrics-collector-restarting-again-and-again/m-p/214597#M176509</link>
    <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/19322/mishraanurag643.html"&gt;Anurag Mishra &lt;/A&gt;&lt;/P&gt;&lt;P&gt;First
check the value of `zookeeper.znode.parent` in HBase. Set it to the same value in Ambari, &lt;/P&gt;&lt;P&gt;Kill all the metrics
processes running on the node.&lt;/P&gt;&lt;P&gt;`ps -ef | grep
metrics` and kill all of them as they were caching the `/hbase` value.&lt;/P&gt;&lt;P&gt;Watch
the ambari metrics collector logs (
/var/log/ambari-metrics-collector/ambari-metrics-collector.log) while you do
the below steps&lt;/P&gt;&lt;P&gt;Steps:&lt;/P&gt;&lt;P&gt;0. tail -f
/var/log/ambari-metrics-collector/ambari-metrics-collector.log&lt;/P&gt;&lt;P&gt;1.
Stop Ambari&lt;/P&gt;&lt;P&gt;2.
Kill all the metrics processes&lt;/P&gt;&lt;P&gt;3.
curl --user admin:admin -i -H "X-Requested-By: ambari" -X DELETE
&lt;A href="http://`hostname" target="_blank"&gt;http://`hostname&lt;/A&gt; -f`:8080/api/v1/clusters/CLUSTERNAME/services/AMBARI_METRICS&lt;/P&gt;&lt;P&gt;=&amp;gt;
Make sure you replace CLUSTERNAME with your cluster name&lt;/P&gt;&lt;P&gt;4.
Refresh Ambari UI&lt;/P&gt;&lt;P&gt;5.
Add Service&lt;/P&gt;&lt;P&gt;6.
Select Ambari Metrics&lt;/P&gt;&lt;P&gt;7.
In the configuration screen, make sure to set the value of
`zookeeper.znode.parent` to what is configured in the HBase service. By default
in Ambari Metrics it is set to empty value.&lt;/P&gt;&lt;P&gt;8.
Deploy&lt;/P&gt;&lt;P&gt;In embedded mode then hbase.cluster.distributed should be
false, and hbase.rootdir set to a local directory using the "file://"
scheme. &lt;/P&gt;</description>
    <pubDate>Thu, 10 Aug 2017 14:37:36 GMT</pubDate>
    <dc:creator>Shelton</dc:creator>
    <dc:date>2017-08-10T14:37:36Z</dc:date>
    <item>
      <title>ambari metrics collector restarting again and again</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ambari-metrics-collector-restarting-again-and-again/m-p/214594#M176506</link>
      <description>&lt;P&gt;ambari metrics collector restarting again and again, first it refuse to connect then alerts in ambari and finally it's status OK, this is happening again and again, stopping and auto starting itself, I have gone through amabari-metrics-collector logs &lt;/P&gt;&lt;P&gt;Error Path:/ams-hbase-unsecure Error:KeeperErrorCode = NodeExists for /ams-hbase-unsecure&lt;/P&gt;&lt;P&gt;Error:KeeperErrorCode = NodeExists for /ams-hbase-unsecure/online-snapshot/acquired&lt;/P&gt;&lt;P&gt;zookeeper.ClientCnxn: Opening socket connection to server  Will not attempt to authenticate using SASL (unknown error)&lt;/P&gt;&lt;P&gt;Note : hbase.zookeeper.property.clientPort=2181 &lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 12:21:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ambari-metrics-collector-restarting-again-and-again/m-p/214594#M176506</guid>
      <dc:creator>amol_08</dc:creator>
      <dc:date>2017-08-10T12:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: ambari metrics collector restarting again and again</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ambari-metrics-collector-restarting-again-and-again/m-p/214595#M176507</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/19322/mishraanurag643.html" nodeid="19322"&gt;@Anurag Mishra&lt;/A&gt;&lt;/P&gt;&lt;P&gt;1. Are you running the AMS with proper Heap Settings? (Or with default values)  Sometimes due to insufficient heap setting this can happen.  Please refer to the following doc to know how to tune the AMS memory settings based on the number of nodes:  &lt;A href="https://cwiki.apache.org/confluence/display/AMBARI/Configurations+-+Tuning" target="_blank"&gt;https://cwiki.apache.org/confluence/display/AMBARI/Configurations+-+Tuning&lt;/A&gt;&lt;/P&gt;&lt;P&gt;2. If it still crashes then once you should try to perform the AMS data cleanup  and then see if it comes up fine.  &lt;A href="https://cwiki.apache.org/confluence/display/AMBARI/Cleaning+up+Ambari+Metrics+System+Data" target="_blank"&gt;https://cwiki.apache.org/confluence/display/AMBARI/Cleaning+up+Ambari+Metrics+System+Data&lt;/A&gt;&lt;/P&gt;&lt;P&gt;3. Are you running AMS in Embedded Mode (Default) or  Distributed Mode (external HBase) ?&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 12:25:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ambari-metrics-collector-restarting-again-and-again/m-p/214595#M176507</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-08-10T12:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: ambari metrics collector restarting again and again</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ambari-metrics-collector-restarting-again-and-again/m-p/214596#M176508</link>
      <description>&lt;P&gt;embedded mode&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 13:39:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ambari-metrics-collector-restarting-again-and-again/m-p/214596#M176508</guid>
      <dc:creator>amol_08</dc:creator>
      <dc:date>2017-08-10T13:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: ambari metrics collector restarting again and again</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ambari-metrics-collector-restarting-again-and-again/m-p/214597#M176509</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/19322/mishraanurag643.html"&gt;Anurag Mishra &lt;/A&gt;&lt;/P&gt;&lt;P&gt;First
check the value of `zookeeper.znode.parent` in HBase. Set it to the same value in Ambari, &lt;/P&gt;&lt;P&gt;Kill all the metrics
processes running on the node.&lt;/P&gt;&lt;P&gt;`ps -ef | grep
metrics` and kill all of them as they were caching the `/hbase` value.&lt;/P&gt;&lt;P&gt;Watch
the ambari metrics collector logs (
/var/log/ambari-metrics-collector/ambari-metrics-collector.log) while you do
the below steps&lt;/P&gt;&lt;P&gt;Steps:&lt;/P&gt;&lt;P&gt;0. tail -f
/var/log/ambari-metrics-collector/ambari-metrics-collector.log&lt;/P&gt;&lt;P&gt;1.
Stop Ambari&lt;/P&gt;&lt;P&gt;2.
Kill all the metrics processes&lt;/P&gt;&lt;P&gt;3.
curl --user admin:admin -i -H "X-Requested-By: ambari" -X DELETE
&lt;A href="http://`hostname" target="_blank"&gt;http://`hostname&lt;/A&gt; -f`:8080/api/v1/clusters/CLUSTERNAME/services/AMBARI_METRICS&lt;/P&gt;&lt;P&gt;=&amp;gt;
Make sure you replace CLUSTERNAME with your cluster name&lt;/P&gt;&lt;P&gt;4.
Refresh Ambari UI&lt;/P&gt;&lt;P&gt;5.
Add Service&lt;/P&gt;&lt;P&gt;6.
Select Ambari Metrics&lt;/P&gt;&lt;P&gt;7.
In the configuration screen, make sure to set the value of
`zookeeper.znode.parent` to what is configured in the HBase service. By default
in Ambari Metrics it is set to empty value.&lt;/P&gt;&lt;P&gt;8.
Deploy&lt;/P&gt;&lt;P&gt;In embedded mode then hbase.cluster.distributed should be
false, and hbase.rootdir set to a local directory using the "file://"
scheme. &lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 14:37:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ambari-metrics-collector-restarting-again-and-again/m-p/214597#M176509</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2017-08-10T14:37:36Z</dc:date>
    </item>
  </channel>
</rss>

