<?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 check the namenode status? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-check-the-namenode-status/m-p/149550#M28439</link>
    <description>&lt;P&gt;You can do a curl command to find out the Active and secondary Namenode for example&lt;/P&gt;&lt;P&gt;curl -u username -H "X-Requested-By: ambari" -X GET &lt;A href="http://cluster-hostname:8080/api/v1/clusters/"&gt;http://cluster-hostname:8080/api/v1/clusters/&lt;/A&gt;/services/HDFS&lt;/P&gt;</description>
    <pubDate>Wed, 08 Nov 2017 02:15:43 GMT</pubDate>
    <dc:creator>meenakrajani</dc:creator>
    <dc:date>2017-11-08T02:15:43Z</dc:date>
    <item>
      <title>How to check the namenode status?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-check-the-namenode-status/m-p/149546#M28435</link>
      <description>&lt;P&gt;As a developer how can I check the current state of a given Namenode? I have tried the getServiceState  command but that is only intended for the admins with superuser access. Any command that can be run from the edge node to get the status of a provided namemnode??&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2016 16:49:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-check-the-namenode-status/m-p/149546#M28435</guid>
      <dc:creator>Alexraj84</dc:creator>
      <dc:date>2016-05-16T16:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to check the namenode status?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-check-the-namenode-status/m-p/149547#M28436</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/33450/how-to-check-the-namenode-status.html#"&gt;@Alex Raj&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can run the command 
&lt;/P&gt;&lt;PRE&gt;hdfs dfsadmin -report&lt;/PRE&gt;&lt;P&gt;However you may not able to see full output but still can see something like below&lt;/P&gt;&lt;PRE&gt;Configured Capacity: 28956426240 (26.97 GB)Present Capacity: 9947332608 (9.26 GB)DFS Remaining: 7329509376 (6.83 GB)DFS Used: 2617823232 (2.44 GB)DFS Used%: 26.32%Under replicated blocks: 0Blocks with corrupt replicas: 0Missing blocks: 0Missing blocks (with replication factor 1): 0&lt;/PRE&gt;</description>
      <pubDate>Mon, 16 May 2016 19:05:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-check-the-namenode-status/m-p/149547#M28436</guid>
      <dc:creator>rpathak</dc:creator>
      <dc:date>2016-05-16T19:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to check the namenode status?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-check-the-namenode-status/m-p/149548#M28437</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1505/alexraj84.html" nodeid="1505"&gt;@Alex Raj&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Check to see if the &lt;A target="_blank" href="https://gist.github.com/cnauroth/7ff52e9f80e7d856ddb3"&gt;following&lt;/A&gt; helps.&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2016 20:02:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-check-the-namenode-status/m-p/149548#M28437</guid>
      <dc:creator>sayankh</dc:creator>
      <dc:date>2016-05-16T20:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to check the namenode status?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-check-the-namenode-status/m-p/149549#M28438</link>
      <description>&lt;P&gt;Finally, I got an answer to this.&lt;/P&gt;&lt;P&gt;As a developer, one cannot execute dfsadmin commands due to the restriction in the policy. To check the namenode availability I used the below if loop in shellscript which did the trick. It wont tell you exactly the namenode is active but with the loop you can easily execute the program accordingly.&lt;/P&gt;&lt;PRE&gt;if hdfs dfs -test -e hdfs://namenodeip/* ; then
echo exist
else 
echo not exist
fi
&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 May 2016 21:09:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-check-the-namenode-status/m-p/149549#M28438</guid>
      <dc:creator>Alexraj84</dc:creator>
      <dc:date>2016-05-17T21:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to check the namenode status?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-check-the-namenode-status/m-p/149550#M28439</link>
      <description>&lt;P&gt;You can do a curl command to find out the Active and secondary Namenode for example&lt;/P&gt;&lt;P&gt;curl -u username -H "X-Requested-By: ambari" -X GET &lt;A href="http://cluster-hostname:8080/api/v1/clusters/"&gt;http://cluster-hostname:8080/api/v1/clusters/&lt;/A&gt;/services/HDFS&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2017 02:15:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-check-the-namenode-status/m-p/149550#M28439</guid>
      <dc:creator>meenakrajani</dc:creator>
      <dc:date>2017-11-08T02:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to check the namenode status?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-check-the-namenode-status/m-p/149551#M28440</link>
      <description>&lt;P&gt;You can find it from boht way &lt;/P&gt;&lt;P&gt;thorugh Hadoop commands and Curl command&lt;/P&gt;&lt;P&gt;1) hdfs dfsamdin -report &lt;/P&gt;&lt;P&gt;2) Hadoop fsck /&lt;/P&gt;&lt;P&gt;3) curl -u username -H "X-Requested-By: ambari" -X GET &lt;A href="http://cluster-hostname:8080/api/v1/clusters/"&gt;http://cluster-hostname:8080/api/v1/clusters/&lt;/A&gt;clustername/services/HDFS&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2017 02:35:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-check-the-namenode-status/m-p/149551#M28440</guid>
      <dc:creator>shehbazks98</dc:creator>
      <dc:date>2017-11-08T02:35:45Z</dc:date>
    </item>
  </channel>
</rss>

