<?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: NameNode Active and Standby state is not showing up in Ambari UI after enabling NN HA in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/NameNode-Active-and-Standby-state-is-not-showing-up-in/m-p/203281#M165284</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/15087/sampathkumarmathur.html" nodeid="15087"&gt;@Sampath Kumar&lt;/A&gt; :&lt;BR /&gt;It looks like namenode is not installed on one of the hosts configured for namenode HA. Check both the hosts where you are trying to configure nn1 and nn2, and install the namenode on the host where it is not installed.
&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;curl -u &amp;lt;ambari_user&amp;gt;:&amp;lt;ambari_password&amp;gt; -H "X-Requested-By:ambari" -i -X POST &lt;A href="http://&amp;lt;ambari-port&amp;gt;:&amp;lt;ambari-port&amp;gt;/api/v1/clusters/&amp;lt;cluster_name&amp;gt;/hosts/&amp;lt;host_name&amp;gt;/host_components/NAMENODE" target="_blank"&gt;http://&amp;lt;ambari-port&amp;gt;:&amp;lt;ambari-port&amp;gt;/api/v1/clusters/&amp;lt;cluster_name&amp;gt;/hosts/&amp;lt;host_name&amp;gt;/host_components/NAMENODE&lt;/A&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 25 May 2018 20:04:11 GMT</pubDate>
    <dc:creator>sameermrinal</dc:creator>
    <dc:date>2018-05-25T20:04:11Z</dc:date>
    <item>
      <title>NameNode Active and Standby state is not showing up in Ambari UI after enabling NN HA</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NameNode-Active-and-Standby-state-is-not-showing-up-in/m-p/203280#M165283</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We have enabled the NN HA by appending the parameters in hdfs-site.xml and core-site.xml by using config.py. But active and standby namenode state is not showing up in ambari UI. Please find the details below.&lt;/P&gt;&lt;P&gt;Parameters:&lt;/P&gt;&lt;P&gt;hdfs-site.xml:&lt;/P&gt;&lt;PRE&gt;"ha.zookeeper.quorum":"master.wpm.com:2181,wpm111.wpm.com:2181,wpm333.wpm.com:2181"
"dfs.ha.automatic-failover.enabled":"true"
"dfs.ha.fencing.methods":"shell(/bin/true)"
"dfs.client.failover.proxy.provider.mycluster":"org.apache.hadoop.hdfs.server.namenode.ha.ConfiguredFailoverProxyProvider"
"dfs.namenode.shared.edits.dir":"qjournal://master.wpm.com:8485;wpm111.wpm.com:8485;wpm333.wpm.com:8485/mycluster"
"dfs.namenode.http-address.mycluster.nn2":"wpm111.wpm.com:50070"
"dfs.namenode.http-address.mycluster.nn1":"master.wpm.com:50070"
"dfs.namenode.rpc-address.mycluster.nn2":"wpm111.wpm.com:8020"
"dfs.namenode.rpc-address.mycluster.nn1":"master.wpm.com:8020"
"dfs.namenode.https-address.mycluster.nn2": "wpm111.wpm.com:50470",
"dfs.namenode.https-address.mycluster.nn1": "master.wpm.com:50470"
"dfs.ha.namenodes.mycluster":"nn1,nn2"
"dfs.nameservices":"mycluster"
&lt;/PRE&gt;&lt;P&gt;core-site.xml&lt;/P&gt;&lt;PRE&gt;"fs.defaultFS" : "hdfs://mycluster/"&lt;/PRE&gt;&lt;P&gt;Service State:&lt;/P&gt;&lt;PRE&gt;[hdfs@WPM0 0]$ hdfs haadmin -getServiceState nn1
standby
[hdfs@WPM0 0]$ hdfs haadmin -getServiceState nn2
active
&lt;/PRE&gt;&lt;P&gt;Please find the ambari UI, Namenode UI and custom hdfs-site.xml screenshot here&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="72996-ambari-ui.png" style="width: 978px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/17294iF5B9F84D9DEBF31E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="72996-ambari-ui.png" alt="72996-ambari-ui.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="72997-nn-active.png" style="width: 1230px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/17295i8B109D364FF92DCC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="72997-nn-active.png" alt="72997-nn-active.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="72998-nn-standby.png" style="width: 1204px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/17296i0A7DE9CF570DB91F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="72998-nn-standby.png" alt="72998-nn-standby.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="72999-custom-hdfs-site.png" style="width: 933px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/17297i129C3C9F57B40BA1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="72999-custom-hdfs-site.png" alt="72999-custom-hdfs-site.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I could see a few warning and errors in ambari-server log.&lt;/P&gt;&lt;PRE&gt;24 May 2018 21:08:08,401  WARN [ambari-client-thread-71] Errors:173 - The following warnings have been detected with resource and/or provider classes:
  WARNING: A HTTP GET method, public javax.ws.rs.core.Response org.apache.ambari.server.api.services.TaskService.getComponents(java.lang.String,javax.ws.rs.core.HttpHeaders,javax.ws.rs.core.UriInfo), should not consume any entity.
  WARNING: A HTTP GET method, public javax.ws.rs.core.Response org.apache.ambari.server.api.services.TaskService.getTask(java.lang.String,javax.ws.rs.core.HttpHeaders,javax.ws.rs.core.UriInfo,java.lang.String), should not consume any entity.
24 May 2018 21:08:27,654  WARN [ambari-client-thread-71] Errors:173 - The following warnings have been detected with resource and/or provider classes:
  WARNING: A HTTP GET method, public javax.ws.rs.core.Response org.apache.ambari.server.api.services.WidgetService.getServices(java.lang.String,javax.ws.rs.core.HttpHeaders,javax.ws.rs.core.UriInfo), should not consume any entity.
  WARNING: A HTTP GET method, public javax.ws.rs.core.Response org.apache.ambari.server.api.services.WidgetService.getService(java.lang.String,javax.ws.rs.core.HttpHeaders,javax.ws.rs.core.UriInfo,java.lang.String), should not consume any entity.
24 May 2018 21:08:27,785  WARN [ambari-client-thread-71] Errors:173 - The following warnings have been detected with resource and/or provider classes:
  WARNING: A HTTP GET method, public javax.ws.rs.core.Response org.apache.ambari.server.api.services.WidgetLayoutService.getServices(java.lang.String,javax.ws.rs.core.HttpHeaders,javax.ws.rs.core.UriInfo), should not consume any entity.
  WARNING: A HTTP GET method, public javax.ws.rs.core.Response org.apache.ambari.server.api.services.WidgetLayoutService.getService(java.lang.String,javax.ws.rs.core.HttpHeaders,javax.ws.rs.core.UriInfo,java.lang.String), should not consume any entity.
24 May 2018 21:08:29,972  INFO [ambari-client-thread-71] StackAdvisorRunner:47 - Script=/var/lib/ambari-server/resources/scripts/stack_advisor.py, actionDirectory=/var/run/ambari-server/stack-recommendations/3, command=recommend-configurations
24 May 2018 21:08:29,976  INFO [ambari-client-thread-71] StackAdvisorRunner:61 - Stack-advisor output=/var/run/ambari-server/stack-recommendations/3/stackadvisor.out, error=/var/run/ambari-server/stack-recommendations/3/stackadvisor.err&lt;/PRE&gt;&lt;P&gt;Could you please help on this.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 05:13:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NameNode-Active-and-Standby-state-is-not-showing-up-in/m-p/203280#M165283</guid>
      <dc:creator>sampathkumar_ma</dc:creator>
      <dc:date>2019-08-18T05:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: NameNode Active and Standby state is not showing up in Ambari UI after enabling NN HA</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NameNode-Active-and-Standby-state-is-not-showing-up-in/m-p/203281#M165284</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/15087/sampathkumarmathur.html" nodeid="15087"&gt;@Sampath Kumar&lt;/A&gt; :&lt;BR /&gt;It looks like namenode is not installed on one of the hosts configured for namenode HA. Check both the hosts where you are trying to configure nn1 and nn2, and install the namenode on the host where it is not installed.
&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;curl -u &amp;lt;ambari_user&amp;gt;:&amp;lt;ambari_password&amp;gt; -H "X-Requested-By:ambari" -i -X POST &lt;A href="http://&amp;lt;ambari-port&amp;gt;:&amp;lt;ambari-port&amp;gt;/api/v1/clusters/&amp;lt;cluster_name&amp;gt;/hosts/&amp;lt;host_name&amp;gt;/host_components/NAMENODE" target="_blank"&gt;http://&amp;lt;ambari-port&amp;gt;:&amp;lt;ambari-port&amp;gt;/api/v1/clusters/&amp;lt;cluster_name&amp;gt;/hosts/&amp;lt;host_name&amp;gt;/host_components/NAMENODE&lt;/A&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 25 May 2018 20:04:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NameNode-Active-and-Standby-state-is-not-showing-up-in/m-p/203281#M165284</guid>
      <dc:creator>sameermrinal</dc:creator>
      <dc:date>2018-05-25T20:04:11Z</dc:date>
    </item>
  </channel>
</rss>

