<?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: how to verify by ambari api the active/standby resource manager in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/how-to-verify-by-ambari-api-the-active-standby-resource/m-p/294831#M217452</link>
    <description>&lt;P&gt;Dear Jay - what you think about my previous answer ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Apr 2020 03:42:55 GMT</pubDate>
    <dc:creator>mike_bronson7</dc:creator>
    <dc:date>2020-04-27T03:42:55Z</dc:date>
    <item>
      <title>how to verify by ambari api the active/standby resource manager</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-verify-by-ambari-api-the-active-standby-resource/m-p/294806#M217433</link>
      <description>&lt;P&gt;hi all&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;we have two master machines&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;master01&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;master02&lt;/STRONG&gt;&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: 637px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/27261i252299F20D4BA1D6/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;on both machines &lt;STRONG&gt;yarn resource manager&lt;/STRONG&gt; is running as active/standby )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;how to verify which machine is with active resource manager by ambari rest api ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2020 13:04:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-verify-by-ambari-api-the-active-standby-resource/m-p/294806#M217433</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2020-04-27T13:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: how to verify by ambari api the active/standby resource manager</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-verify-by-ambari-api-the-active-standby-resource/m-p/294814#M217438</link>
      <description>&lt;P&gt;example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;[root@master2 ~]# su yarn&lt;BR /&gt;[yarn@master2 root]$ yarn rmadmin -getServiceState rm1&lt;BR /&gt;standby&lt;BR /&gt;[yarn@master2 root]$ yarn rmadmin -getServiceState rm2&lt;BR /&gt;active&lt;/P&gt;</description>
      <pubDate>Sun, 26 Apr 2020 17:14:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-verify-by-ambari-api-the-active-standby-resource/m-p/294814#M217438</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2020-04-26T17:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to verify by ambari api the active/standby resource manager</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-verify-by-ambari-api-the-active-standby-resource/m-p/294824#M217447</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;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;If you want to get the HA Status (Active/Standby) for ResourceManager then you can make the following call:&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# curl -s -u admin:admin -H "X-Requested-By: ambari" -X GET "h ttp://$AMBARI_FQDN:8080/api/v1/clusters/$CLUSTER_NAME/host_components?HostRoles/component_name=RESOURCEMANAGER&amp;amp;HostRoles/ha_state.in(ACTIVE,STANDBY)"&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;If you just want to know that which host the ResourceManager is in Active State the&lt;/STRONG&gt;&lt;/EM&gt;n:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# curl -s -u admin:admin -H "X-Requested-By: ambari" -X GET "h ttp://$AMBARI_FQDN:8080/api/v1/clusters/$CLUSTER_NAME/host_components?HostRoles/component_name=RESOURCEMANAGER&amp;amp;HostRoles/ha_state=ACTIVE"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2020 01:05:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-verify-by-ambari-api-the-active-standby-resource/m-p/294824#M217447</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2020-04-27T01:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: how to verify by ambari api the active/standby resource manager</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-verify-by-ambari-api-the-active-standby-resource/m-p/294831#M217452</link>
      <description>&lt;P&gt;Dear Jay - what you think about my previous answer ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2020 03:42:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-verify-by-ambari-api-the-active-standby-resource/m-p/294831#M217452</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2020-04-27T03:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: how to verify by ambari api the active/standby resource manager</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-verify-by-ambari-api-the-active-standby-resource/m-p/294862#M217475</link>
      <description>&lt;P&gt;Dear Jay - we try this API but no any status from API,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2020 11:26:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-verify-by-ambari-api-the-active-standby-resource/m-p/294862#M217475</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2020-04-27T11:26:34Z</dc:date>
    </item>
  </channel>
</rss>

