<?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: Configuring Ambari Metrics service in distributed mode in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Configuring-Ambari-Metrics-service-in-distributed-mode/m-p/287471#M213059</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/59349"&gt;@mike_bronson7&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When your cluster is in HA it uses a &lt;STRONG&gt;namespace&lt;/STRONG&gt; that acts as a &lt;STRONG&gt;load balancer&lt;/STRONG&gt; to facilitate the switch from &lt;STRONG&gt;active&lt;/STRONG&gt; to &lt;STRONG&gt;standby&lt;/STRONG&gt; and vice versa.&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;dfs-site-xml&lt;/STRONG&gt; holds these values&amp;nbsp; filter using&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;dfs.nameservices&amp;nbsp;&lt;/STRONG&gt; the&amp;nbsp;&lt;STRONG&gt;nameservice-id&amp;nbsp; &lt;/STRONG&gt;should be your namespace or in HA look for&amp;nbsp;&lt;STRONG&gt;dfs.ha.namenodes.[nameservice ID]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;dfs.ha.namenodes.[nameservice ID]  e.g dfs.ha.namenodes.mycluster&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And that's the value to set&amp;nbsp; eg&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;hdfs://mycluster_namespace/user/ams/hbase&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The refresh the stale configs , now HBase should sending the metrics&amp;nbsp; to that directory&amp;nbsp;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 12 Jan 2020 20:57:43 GMT</pubDate>
    <dc:creator>Shelton</dc:creator>
    <dc:date>2020-01-12T20:57:43Z</dc:date>
    <item>
      <title>Configuring Ambari Metrics service in distributed mode</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Configuring-Ambari-Metrics-service-in-distributed-mode/m-p/287467#M213056</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;since metrics take space on the local disk , &lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;we want to move to&amp;nbsp;distributed mode ,&amp;nbsp;so metrics data will be on HDFS and not on local disk&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;we start to work according to the link -&amp;nbsp;&lt;A href="https://cwiki.apache.org/confluence/display/AMBARI/AMS+-+distributed+mode" target="_blank" rel="noopener"&gt;https://cwiki.apache.org/confluence/display/AMBARI/AMS+-+distributed+mode&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;we are using ambari cluster 2.6.4 with active/stand by name node&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 431px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/26028i53044CABAF496792/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;so we start the configuration&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;first we set in ambari the following&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;ams-site&lt;/EM&gt;&lt;SPAN&gt;, Set timeline.metrics.service.operation.mode = distributed&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;now&amp;nbsp; we need to&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Edit&amp;nbsp;&lt;STRONG&gt;ams-hbase-site&lt;/STRONG&gt;,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;hdfs://&amp;lt;nameservice-id&amp;gt;/user/ams/hbase&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the question is - how to find the&amp;nbsp;nameservice-id ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;since we have active/stand by name node&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;then how to know the -&lt;STRONG&gt;&amp;nbsp;nameservice-id&lt;/STRONG&gt; value?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2020 06:40:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Configuring-Ambari-Metrics-service-in-distributed-mode/m-p/287467#M213056</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2020-01-13T06:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring Ambari Metrics service in distributed mode</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Configuring-Ambari-Metrics-service-in-distributed-mode/m-p/287471#M213059</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/59349"&gt;@mike_bronson7&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When your cluster is in HA it uses a &lt;STRONG&gt;namespace&lt;/STRONG&gt; that acts as a &lt;STRONG&gt;load balancer&lt;/STRONG&gt; to facilitate the switch from &lt;STRONG&gt;active&lt;/STRONG&gt; to &lt;STRONG&gt;standby&lt;/STRONG&gt; and vice versa.&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;dfs-site-xml&lt;/STRONG&gt; holds these values&amp;nbsp; filter using&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;dfs.nameservices&amp;nbsp;&lt;/STRONG&gt; the&amp;nbsp;&lt;STRONG&gt;nameservice-id&amp;nbsp; &lt;/STRONG&gt;should be your namespace or in HA look for&amp;nbsp;&lt;STRONG&gt;dfs.ha.namenodes.[nameservice ID]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;dfs.ha.namenodes.[nameservice ID]  e.g dfs.ha.namenodes.mycluster&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And that's the value to set&amp;nbsp; eg&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;hdfs://mycluster_namespace/user/ams/hbase&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The refresh the stale configs , now HBase should sending the metrics&amp;nbsp; to that directory&amp;nbsp;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 12 Jan 2020 20:57:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Configuring-Ambari-Metrics-service-in-distributed-mode/m-p/287471#M213059</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2020-01-12T20:57:43Z</dc:date>
    </item>
  </channel>
</rss>

