<?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 Ambari REST API + how to capture the active namenode IP from API in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Ambari-REST-API-how-to-capture-the-active-namenode-IP-from/m-p/289625#M214376</link>
    <description>&lt;P&gt;hi all&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;we have HDP version - 2.6.4&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;with active and standby namenode&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;is it possible to capture the active namenode IP by REST API?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;we try by the following API , but API not return any output&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;curl -sH "X-Requested-By: ambari" -u admin:admin -H "X-Requested-By: ambari" -X GET http://master:8080/api/v1/clusters//services/HDFS&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: 435px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/26340i2F9E9DA32FBAFD20/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;</description>
    <pubDate>Wed, 12 Feb 2020 14:30:27 GMT</pubDate>
    <dc:creator>mike_bronson7</dc:creator>
    <dc:date>2020-02-12T14:30:27Z</dc:date>
    <item>
      <title>Ambari REST API + how to capture the active namenode IP from API</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-REST-API-how-to-capture-the-active-namenode-IP-from/m-p/289625#M214376</link>
      <description>&lt;P&gt;hi all&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;we have HDP version - 2.6.4&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;with active and standby namenode&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;is it possible to capture the active namenode IP by REST API?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;we try by the following API , but API not return any output&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;curl -sH "X-Requested-By: ambari" -u admin:admin -H "X-Requested-By: ambari" -X GET http://master:8080/api/v1/clusters//services/HDFS&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: 435px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/26340i2F9E9DA32FBAFD20/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;</description>
      <pubDate>Wed, 12 Feb 2020 14:30:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-REST-API-how-to-capture-the-active-namenode-IP-from/m-p/289625#M214376</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2020-02-12T14:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari REST API + how to capture the active namenode IP from API</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-REST-API-how-to-capture-the-active-namenode-IP-from/m-p/314248#M225933</link>
      <description>&lt;P&gt;You are hitting with wrong values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Find below example:&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;curl -u admin:password "http://{hostname}:8080/api/v1/clusters/{cluster _name}/host_components?HostRoles/"&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 16:11:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-REST-API-how-to-capture-the-active-namenode-IP-from/m-p/314248#M225933</guid>
      <dc:creator>sarvan_rallev</dc:creator>
      <dc:date>2021-04-07T16:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari REST API + how to capture the active namenode IP from API</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-REST-API-how-to-capture-the-active-namenode-IP-from/m-p/314271#M225943</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; Use the following API to find out the node &amp;amp; state of the active/standby&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# curl -u &amp;lt;User name&amp;gt;:&amp;lt;Password&amp;gt; -H 'X-Requested-By: ambari' -X GET 'http://test1:8080/api/v1/clusters/c186/host_components?HostRoles/componentname=NAMENODE&amp;amp;metrics/dfs/FSNamesystem/HAState=active'

# curl -u &amp;lt;User name&amp;gt;:&amp;lt;Password&amp;gt; -H 'X-Requested-By: ambari' -X GET 'http://test1:8080/api/v1/clusters/c186/host_components?HostRoles/componentname=NAMENODE&amp;amp;metrics/dfs/FSNamesystem/HAState=standby”&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 06:44:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-REST-API-how-to-capture-the-active-namenode-IP-from/m-p/314271#M225943</guid>
      <dc:creator>Scharan</dc:creator>
      <dc:date>2021-04-08T06:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari REST API + how to capture the active namenode IP from API</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-REST-API-how-to-capture-the-active-namenode-IP-from/m-p/378938#M243722</link>
      <description>&lt;P&gt;fix: `componentname` should be `component_name`&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2023 03:47:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-REST-API-how-to-capture-the-active-namenode-IP-from/m-p/378938#M243722</guid>
      <dc:creator>MeowBot</dc:creator>
      <dc:date>2023-11-13T03:47:50Z</dc:date>
    </item>
  </channel>
</rss>

