<?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 - Switching from Embedded to Distributed Mode Fails in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Metrics-Switching-from-Embedded-to-Distributed-Mode/m-p/144266#M106848</link>
    <description>&lt;P&gt;Awesome. The referred Articles helped me solve my ambari-metrics restart issue.&lt;/P&gt;&lt;P&gt;Here is the short form of the steps&lt;/P&gt;&lt;P&gt;1) Stop Ambari Metrics Collector and Grafana&lt;/P&gt;&lt;P&gt;2)  Backup the embedded hbase and hbase-temp folders and deleted them. (The paths could differ from default. So I looked up the &lt;STRONG&gt;hbase.rootdir&lt;/STRONG&gt; and &lt;STRONG&gt; &lt;/STRONG&gt;hbase.tmp.dir&lt;STRONG&gt; &lt;/STRONG&gt;properties in Ambari &amp;gt; Ambari Metrics &amp;gt; Config for the appropriate path) &lt;/P&gt;&lt;P&gt;3) Restart Ambari Metrics Collector and Grafana&lt;/P&gt;&lt;P&gt;The Ambari Metrics Collector Started correctly without any errors. &lt;/P&gt;&lt;P&gt;Note: As you may have suspected, by deleting the existing hbase folder, you will loose the  metrics history.&lt;/P&gt;</description>
    <pubDate>Tue, 06 Jun 2017 01:51:04 GMT</pubDate>
    <dc:creator>jay1ram2</dc:creator>
    <dc:date>2017-06-06T01:51:04Z</dc:date>
    <item>
      <title>Ambari Metrics - Switching from Embedded to Distributed Mode Fails</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Metrics-Switching-from-Embedded-to-Distributed-Mode/m-p/144256#M106838</link>
      <description>&lt;P&gt;I have tried following the instructions in the link below which saves just fine.  But when I go to start the Metrics Collector, it will look like it is started but then will show as being in a stopped state.&lt;/P&gt;&lt;P&gt;
&lt;A href="https://cwiki.apache.org/confluence/display/AMBARI/AMS+-+distributed+mode" target="_blank"&gt;https://cwiki.apache.org/confluence/display/AMBARI/AMS+-+distributed+mode&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I changed the hbase.zookeeper.property.clientPort property to 2181 as in the doc as well but I noticed in the log it is showing the old port in the socket connection with the following line saying "session... for server null"&lt;/P&gt;&lt;P&gt;In the web interface however, I get the following errors:&lt;/P&gt;&lt;PRE&gt;Metrics Collector - ZooKeeper Server ProcessConnection failed: [Errno 111] Connection refused to r9-01.maas:2181Metrics Collector - HBase Master ProcessConnection failed: [Errno 111] Connection refused to r9-01.maas:61310&lt;/PRE&gt;&lt;P&gt;Here is a little snippet from the /var/log/ambari-metrics-collector.log file.  The rest of the log seemed to repeat the same messages.&lt;/P&gt;&lt;PRE&gt;2016-02-16 16:04:31,425 INFO org.apache.zookeeper.ClientCnxn: Opening socket connection to server localhost/127.0.0.1:&lt;STRONG&gt;61181&lt;/STRONG&gt;. Will not attempt to authenticate using SASL (unknown error)
2016-02-16 16:04:31,426 WARN org.apache.zookeeper.ClientCnxn: &lt;STRONG&gt;Session 0x152e783fe0d0001 for server null, unexpected error&lt;/STRONG&gt;, closing socket connection and attempting reconnect
java.net.ConnectException: Connection refused
        at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
        at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
        at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)
        at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081)
2016-02-16 16:04:31,526 WARN org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper: Possibly transient ZooKeeper, quorum=localhost:&lt;STRONG&gt;61181&lt;/STRONG&gt;, exception=org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase/meta-region-server &lt;/PRE&gt;</description>
      <pubDate>Wed, 17 Feb 2016 09:17:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Metrics-Switching-from-Embedded-to-Distributed-Mode/m-p/144256#M106838</guid>
      <dc:creator>v-kypife</dc:creator>
      <dc:date>2016-02-17T09:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Metrics - Switching from Embedded to Distributed Mode Fails</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Metrics-Switching-from-Embedded-to-Distributed-Mode/m-p/144257#M106839</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2025/v-kypife.html" nodeid="2025"&gt;@Kyle Pifer&lt;/A&gt; please use our docs to install, wiki's tend to be a bit out of date &lt;A href="http://docs.hortonworks.com/HDPDocuments/Ambari-2.2.0.0/bk_ambari_reference_guide/content/ch_amb_ref_configuring_ambari_metrics.html" target="_blank"&gt;http://docs.hortonworks.com/HDPDocuments/Ambari-2.2.0.0/bk_ambari_reference_guide/content/ch_amb_ref_configuring_ambari_metrics.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 19:20:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Metrics-Switching-from-Embedded-to-Distributed-Mode/m-p/144257#M106839</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-02-17T19:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Metrics - Switching from Embedded to Distributed Mode Fails</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Metrics-Switching-from-Embedded-to-Distributed-Mode/m-p/144258#M106840</link>
      <description>&lt;P&gt;Thank you for the link, specifically I saw the outline under the &lt;A href="http://docs.hortonworks.com/HDPDocuments/Ambari-2.2.0.0/bk_ambari_reference_guide/content/_ams_general_guidelines.html"&gt;General Guidelines&lt;/A&gt; section which I didn't see before.  Our cluster is 300-400 nodes so I will leave the collector in embedded mode and reconfigure it per the settings below and hopefully the collector will stop failing =)
&lt;/P&gt;
&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Production&lt;/TD&gt;&lt;TD&gt;200-400&lt;/TD&gt;&lt;TD&gt;200GB&lt;/TD&gt;&lt;TD&gt;embedded&lt;/TD&gt;&lt;TD&gt;n.a.&lt;/TD&gt;&lt;TD&gt;metrics_collector_heap_size=2048&lt;P&gt;hbase_regionserver_heapsize=2048&lt;/P&gt;&lt;P&gt;hbase_master_heapsize=2048&lt;/P&gt;&lt;P&gt;hbase_master_xmn_size=512&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Thu, 18 Feb 2016 00:31:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Metrics-Switching-from-Embedded-to-Distributed-Mode/m-p/144258#M106840</guid>
      <dc:creator>v-kypife</dc:creator>
      <dc:date>2016-02-18T00:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Metrics - Switching from Embedded to Distributed Mode Fails</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Metrics-Switching-from-Embedded-to-Distributed-Mode/m-p/144259#M106841</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2025/v-kypife.html" nodeid="2025"&gt;@Kyle Pifer&lt;/A&gt; yes, as a general rule of thumb, check the docs first, then HCC, then wiki :). &lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2016 00:32:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Metrics-Switching-from-Embedded-to-Distributed-Mode/m-p/144259#M106841</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-02-18T00:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Metrics - Switching from Embedded to Distributed Mode Fails</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Metrics-Switching-from-Embedded-to-Distributed-Mode/m-p/144260#M106842</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/2025/v-kypife.html" nodeid="2025"&gt;@Kyle Pifer&lt;/A&gt;&lt;P&gt;I would be opening a case with support if I am in your shoes.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2016 00:36:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Metrics-Switching-from-Embedded-to-Distributed-Mode/m-p/144260#M106842</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-02-18T00:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Metrics - Switching from Embedded to Distributed Mode Fails</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Metrics-Switching-from-Embedded-to-Distributed-Mode/m-p/144261#M106843</link>
      <description>&lt;P&gt;The RS heap size in the docs for 400 node cluster is quite low, if you have memory available I would recommend at least 8192.&lt;/P&gt;&lt;P&gt;The only bottleneck with embedded is write to single disk, if the disk is not oversubscribed, embedded mode works well up to 400 node cluster.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2016 01:15:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Metrics-Switching-from-Embedded-to-Distributed-Mode/m-p/144261#M106843</guid>
      <dc:creator>sidwagle</dc:creator>
      <dc:date>2016-02-18T01:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Metrics - Switching from Embedded to Distributed Mode Fails</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Metrics-Switching-from-Embedded-to-Distributed-Mode/m-p/144262#M106844</link>
      <description>&lt;P&gt;Thanks Swagle for the helpful info!&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2016 02:27:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Metrics-Switching-from-Embedded-to-Distributed-Mode/m-p/144262#M106844</guid>
      <dc:creator>v-kypife</dc:creator>
      <dc:date>2016-02-18T02:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Metrics - Switching from Embedded to Distributed Mode Fails</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Metrics-Switching-from-Embedded-to-Distributed-Mode/m-p/144263#M106845</link>
      <description>&lt;P&gt;Make sure you have configured the right heap size as well as validate the following configurations:&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;hbase.rootdir = hdfs://ams......&lt;/LI&gt;&lt;LI&gt;hbase.cluster.distributed=True&lt;/LI&gt;&lt;LI&gt;Metrics service operation mode=distributed&lt;/LI&gt;&lt;LI&gt;hbase.zookeeper.property.clientPort=2181&lt;/LI&gt;&lt;LI&gt;hbase.zookeeper.quorum=&amp;lt;zookeeper quorum, comma separated without port&amp;gt;&lt;/LI&gt;&lt;LI&gt;zookeper.znode.parent= /ams-hbase-unsecure  or /hbase-hbase-secure (depending kerberos yes/no)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Restart the metrics collector and make sure a new Znode was created in Zookeeper. Make sure Hbase and the Metrics collector have been started successfully.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2016 02:41:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Metrics-Switching-from-Embedded-to-Distributed-Mode/m-p/144263#M106845</guid>
      <dc:creator>jstraub</dc:creator>
      <dc:date>2016-02-18T02:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Metrics - Switching from Embedded to Distributed Mode Fails</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Metrics-Switching-from-Embedded-to-Distributed-Mode/m-p/144264#M106846</link>
      <description>&lt;P&gt;Thanks Jonas, I am in the process of trying embedded mode again per the 200-400 node guideline along with Swagle's recommendation of increasing the regionserver heap size.  I will bookmark your response though if we increase the size of the cluster to require distributed mode.  When I had tried distributed mode earlier I did not change &lt;STRONG&gt;hbase.zookeeper.quorum&lt;/STRONG&gt; or  &lt;STRONG&gt;zookeper.znode.parent&lt;/STRONG&gt; so that could have been it.  Thanks again though for taking the time &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2016 05:08:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Metrics-Switching-from-Embedded-to-Distributed-Mode/m-p/144264#M106846</guid>
      <dc:creator>v-kypife</dc:creator>
      <dc:date>2016-02-18T05:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Metrics - Switching from Embedded to Distributed Mode Fails</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Metrics-Switching-from-Embedded-to-Distributed-Mode/m-p/144265#M106847</link>
      <description>&lt;P&gt;I came across this article while searching for a resolution to Errno 111.  &lt;/P&gt;&lt;P&gt;In case anyone else stumbles upon this article for the same reason, I was able to get my metrics working again by resetting metrics.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/articles/11805/how-to-solve-ambari-metrics-corrupted-data.html" target="_blank"&gt;https://community.hortonworks.com/articles/11805/how-to-solve-ambari-metrics-corrupted-data.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://jonmorisissqlblog.blogspot.com/2016/08/ambari-metrics-collector-not-starting.html" target="_blank"&gt;http://jonmorisissqlblog.blogspot.com/2016/08/ambari-metrics-collector-not-starting.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Aug 2016 04:27:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Metrics-Switching-from-Embedded-to-Distributed-Mode/m-p/144265#M106847</guid>
      <dc:creator>Jon_Morisi</dc:creator>
      <dc:date>2016-08-27T04:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Metrics - Switching from Embedded to Distributed Mode Fails</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Metrics-Switching-from-Embedded-to-Distributed-Mode/m-p/144266#M106848</link>
      <description>&lt;P&gt;Awesome. The referred Articles helped me solve my ambari-metrics restart issue.&lt;/P&gt;&lt;P&gt;Here is the short form of the steps&lt;/P&gt;&lt;P&gt;1) Stop Ambari Metrics Collector and Grafana&lt;/P&gt;&lt;P&gt;2)  Backup the embedded hbase and hbase-temp folders and deleted them. (The paths could differ from default. So I looked up the &lt;STRONG&gt;hbase.rootdir&lt;/STRONG&gt; and &lt;STRONG&gt; &lt;/STRONG&gt;hbase.tmp.dir&lt;STRONG&gt; &lt;/STRONG&gt;properties in Ambari &amp;gt; Ambari Metrics &amp;gt; Config for the appropriate path) &lt;/P&gt;&lt;P&gt;3) Restart Ambari Metrics Collector and Grafana&lt;/P&gt;&lt;P&gt;The Ambari Metrics Collector Started correctly without any errors. &lt;/P&gt;&lt;P&gt;Note: As you may have suspected, by deleting the existing hbase folder, you will loose the  metrics history.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2017 01:51:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Metrics-Switching-from-Embedded-to-Distributed-Mode/m-p/144266#M106848</guid>
      <dc:creator>jay1ram2</dc:creator>
      <dc:date>2017-06-06T01:51:04Z</dc:date>
    </item>
  </channel>
</rss>

