<?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: Identify active YARN RM in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Identify-active-YARN-RM/m-p/216869#M69347</link>
    <description>&lt;P&gt; &lt;A rel="user" href="https://community.cloudera.com/users/13729/nord-tramper.html" nodeid="13729"&gt;@Nikita Kiselev&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;You can also get it using Ambari REST API&lt;/P&gt;&lt;PRE&gt;&lt;A href="http://&amp;lt;ambari-host&amp;gt;:&amp;lt;ambari-port&amp;gt;/api/v1/clusters/&amp;lt;cluster-name&amp;gt;/host_components?HostRoles/component_name=RESOURCEMANAGER&amp;amp;HostRoles/ha_state=ACTIVE" target="_blank"&gt;http://&amp;lt;ambari-host&amp;gt;:&amp;lt;ambari-port&amp;gt;/api/v1/clusters/&amp;lt;cluster-name&amp;gt;/host_components?HostRoles/component_name=RESOURCEMANAGER&amp;amp;HostRoles/ha_state=ACTIVE&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt; To get STANDBY RM , you can replace ha_state with STANDBY in the above URL&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;</description>
    <pubDate>Tue, 10 Oct 2017 21:50:21 GMT</pubDate>
    <dc:creator>asirna</dc:creator>
    <dc:date>2017-10-10T21:50:21Z</dc:date>
    <item>
      <title>Identify active YARN RM</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Identify-active-YARN-RM/m-p/216867#M69345</link>
      <description>&lt;P&gt;Is it possible to identify active YARN ResourceManager using ZooKeeper or any other method?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 20:21:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Identify-active-YARN-RM/m-p/216867#M69345</guid>
      <dc:creator>nord_tramper</dc:creator>
      <dc:date>2017-10-10T20:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Identify active YARN RM</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Identify-active-YARN-RM/m-p/216868#M69346</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/13729/nord-tramper.html" nodeid="13729"&gt;@Nikita Kiselev&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;You can get the active Yarn RM Id from zookeeer.&lt;/P&gt;&lt;PRE&gt;cd /usr/hdp/current/zookeeper-client/bin
./zkCli.sh -server &amp;lt;zk-quorum&amp;gt;
[zk: localhost:2181(CONNECTED) 14]: get /yarn-leader-election/&amp;lt;cluster-id&amp;gt;/ActiveStandbyElectorLock&lt;/PRE&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 21:42:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Identify-active-YARN-RM/m-p/216868#M69346</guid>
      <dc:creator>asirna</dc:creator>
      <dc:date>2017-10-10T21:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: Identify active YARN RM</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Identify-active-YARN-RM/m-p/216869#M69347</link>
      <description>&lt;P&gt; &lt;A rel="user" href="https://community.cloudera.com/users/13729/nord-tramper.html" nodeid="13729"&gt;@Nikita Kiselev&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;You can also get it using Ambari REST API&lt;/P&gt;&lt;PRE&gt;&lt;A href="http://&amp;lt;ambari-host&amp;gt;:&amp;lt;ambari-port&amp;gt;/api/v1/clusters/&amp;lt;cluster-name&amp;gt;/host_components?HostRoles/component_name=RESOURCEMANAGER&amp;amp;HostRoles/ha_state=ACTIVE" target="_blank"&gt;http://&amp;lt;ambari-host&amp;gt;:&amp;lt;ambari-port&amp;gt;/api/v1/clusters/&amp;lt;cluster-name&amp;gt;/host_components?HostRoles/component_name=RESOURCEMANAGER&amp;amp;HostRoles/ha_state=ACTIVE&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt; To get STANDBY RM , you can replace ha_state with STANDBY in the above URL&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 21:50:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Identify-active-YARN-RM/m-p/216869#M69347</guid>
      <dc:creator>asirna</dc:creator>
      <dc:date>2017-10-10T21:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: Identify active YARN RM</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Identify-active-YARN-RM/m-p/216870#M69348</link>
      <description>&lt;P&gt;Thanks! Which keytab I should use to get access to this Zookepper Node (kerberized cluster)? Is it possible to use ZooKeeper Java API to get same info?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2017 01:36:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Identify-active-YARN-RM/m-p/216870#M69348</guid>
      <dc:creator>nord_tramper</dc:creator>
      <dc:date>2017-10-11T01:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: Identify active YARN RM</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Identify-active-YARN-RM/m-p/216871#M69349</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/13729/nord-tramper.html" nodeid="13729"&gt;@Nikita Kiselev&lt;/A&gt;, you can also use yarn cli to figure out active/stand by RM. &lt;/P&gt;&lt;P&gt;You can find out RM-Ids from yarn-site.xml. Look for yarn.resourcemanager.ha.rm-ids properties. &lt;/P&gt;&lt;PRE&gt;&amp;lt;property&amp;gt;
&amp;lt;name&amp;gt; yarn.resourcemanager.ha.rm-ids&amp;lt;/name&amp;gt;
&amp;lt;value&amp;gt; rm1, rm2&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt;&lt;/PRE&gt;&lt;P&gt;Run "yarn rmadmin -getServiceState rm1"  to find out state of RM1. It will return active if RM1 is an active RM or else it will return standby. You can run same command to know rm2 status too. ( yarn rmadmin -getServiceState rm2). &lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2017 01:36:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Identify-active-YARN-RM/m-p/216871#M69349</guid>
      <dc:creator>yvora</dc:creator>
      <dc:date>2017-10-11T01:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: Identify active YARN RM</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Identify-active-YARN-RM/m-p/216872#M69350</link>
      <description>&lt;P&gt;You can use the yarn keytab to access this . (/etc/security/keytabs/yarn.headless.keytab).&lt;/P&gt;&lt;P&gt;Yes, can you access this using ZK Java API as well. Check the ZK Java example &lt;A href="https://zookeeper.apache.org/doc/trunk/javaExample.html"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Also, were you able to get it using the Ambari REST API as mentioned in my another answer.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2017 12:17:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Identify-active-YARN-RM/m-p/216872#M69350</guid>
      <dc:creator>asirna</dc:creator>
      <dc:date>2017-10-11T12:17:42Z</dc:date>
    </item>
  </channel>
</rss>

