<?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 NameNode safemode issue in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NameNode-safemode-issue/m-p/129053#M22971</link>
    <description>Not able to take Namenode off of SafeMode. Below is what happened:
&lt;PRE&gt;
a.) Ambari instructed to take HDFS checkpointThe
last HDFS checkpoint is older than 12 hours. Make sure that you have taken a
checkpoint before proceedingb.) 
b.) I then put the namenode in safemode and created a checkpoint
sudo su hdfs -l -c 'hdfs dfsadmin -safemode enter'
sudo su hdfs -l -c 'hdfs dfsadmin -saveNamespace'
3.) After that I am not able to restart nameNode. I tried to manually leave the safenode by trying the command: hdfs dfsadmin -safemode leave
4.) I also restarted all the datanode but nameNode is not restarting. it times out 
5.) I am using Ambari
Thanks
&lt;/PRE&gt;</description>
    <pubDate>Tue, 15 Mar 2016 21:55:32 GMT</pubDate>
    <dc:creator>prakashpunj</dc:creator>
    <dc:date>2016-03-15T21:55:32Z</dc:date>
    <item>
      <title>NameNode safemode issue</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NameNode-safemode-issue/m-p/129053#M22971</link>
      <description>Not able to take Namenode off of SafeMode. Below is what happened:
&lt;PRE&gt;
a.) Ambari instructed to take HDFS checkpointThe
last HDFS checkpoint is older than 12 hours. Make sure that you have taken a
checkpoint before proceedingb.) 
b.) I then put the namenode in safemode and created a checkpoint
sudo su hdfs -l -c 'hdfs dfsadmin -safemode enter'
sudo su hdfs -l -c 'hdfs dfsadmin -saveNamespace'
3.) After that I am not able to restart nameNode. I tried to manually leave the safenode by trying the command: hdfs dfsadmin -safemode leave
4.) I also restarted all the datanode but nameNode is not restarting. it times out 
5.) I am using Ambari
Thanks
&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 Mar 2016 21:55:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NameNode-safemode-issue/m-p/129053#M22971</guid>
      <dc:creator>prakashpunj</dc:creator>
      <dc:date>2016-03-15T21:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: NameNode safemode issue</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NameNode-safemode-issue/m-p/129054#M22972</link>
      <description>&lt;P&gt;
	Are you able to access NameNode web UI?&lt;/P&gt;&lt;P&gt;If yes then what message you see on webpage?&lt;/P&gt;&lt;P&gt;If not then please paste the contents of latest namenode service logs. Should be at /var/log/hadoop/hdfs&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2016 22:34:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NameNode-safemode-issue/m-p/129054#M22972</guid>
      <dc:creator>rahulpathak109</dc:creator>
      <dc:date>2016-03-15T22:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: NameNode safemode issue</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NameNode-safemode-issue/m-p/129055#M22973</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/872/rahulpathak109.html" nodeid="872"&gt;@Rahul Pathak&lt;/A&gt; &lt;/P&gt;&lt;P&gt;I changed the "dfs.namenode.safemode.threshold-pct" from 1 to .9 but it gets changed to "1". &lt;/P&gt;&lt;P&gt;This is the information from the Namenode web UI:&lt;/P&gt;&lt;P&gt;Safe mode is ON. The reported blocks 1628 needs additional 2 blocks to reach the threshold 1.0000 of total blocks 1629. The number of live datanodes 4 has reached the minimum number 0. Safe mode will be turned off automatically once the thresholds have been reached.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2016 00:01:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NameNode-safemode-issue/m-p/129055#M22973</guid>
      <dc:creator>prakashpunj</dc:creator>
      <dc:date>2016-03-16T00:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: NameNode safemode issue</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NameNode-safemode-issue/m-p/129056#M22974</link>
      <description>&lt;P&gt;last few lines of namenode log is&lt;/P&gt;&lt;PRE&gt;The reported blocks 1628 needs additional 2 blocks to reach the threshold 1.0000 of total blocks 1629.
The number of live datanodes 4 has reached the minimum number 0. Safe mode will be turned off automatically once the thresholds have been reached.
2016-03-15 13:39:28,096 INFO  ipc.Server (Server.java:run(2165)) - IPC Server handler 193 on 8020, call org.apache.hadoop.hdfs.protocol.ClientProtocol.mkdirs from 10.0.2.23:47933 Call#0 Retry#229: org.apache.hadoop.hdfs.server.namenode.SafeModeException: Cannot create directory /system/yarn/node-labels. Name node is in safe mode.
The reported blocks 1628 needs additional 2 blocks to reach the threshold 1.0000 of total blocks 1629.
The number of live datanodes 4 has reached the minimum number 0. Safe mode will be turned off automatically once the thresholds have been reached.
2016-03-15 13:39:30,097 INFO  ipc.Server (Server.java:run(2165)) - IPC Server handler 193 on 8020, call org.apache.hadoop.hdfs.protocol.ClientProtocol.mkdirs from 10.0.2.23:47933 Call#0 Retry#230: org.apache.hadoop.hdfs.server.namenode.SafeModeException: Cannot create directory /system/yarn/node-labels. Name node is in safe mode.
The reported blocks 1628 needs additional 2 blocks to reach the threshold 1.0000 of total blocks 1629.
The number of live datanodes 4 has reached the minimum number 0. Safe mode will be turned off automatically once the thresholds have been reached.
&lt;/PRE&gt;</description>
      <pubDate>Wed, 16 Mar 2016 00:39:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NameNode-safemode-issue/m-p/129056#M22974</guid>
      <dc:creator>prakashpunj</dc:creator>
      <dc:date>2016-03-16T00:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: NameNode safemode issue</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NameNode-safemode-issue/m-p/129057#M22975</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1277/prakashpunj.html" nodeid="1277"&gt;@Prakash Punj&lt;/A&gt; &lt;/P&gt;&lt;P&gt;
	Are you changing dfs.namenode.safemode.threshold-pct from Ambari web UI?&lt;/P&gt;&lt;P&gt;
	If not then do it from Ambari web UI.&lt;/P&gt;&lt;P&gt;
	Does hdfs dfsadmin -safemode leave work? &lt;/P&gt;&lt;P&gt;Are you running above command from hdfs user?&lt;/P&gt;&lt;P&gt;Does hdfs dfsadmin -safemode leave give any error?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2016 11:32:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NameNode-safemode-issue/m-p/129057#M22975</guid>
      <dc:creator>rahulpathak109</dc:creator>
      <dc:date>2016-03-16T11:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: NameNode safemode issue</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NameNode-safemode-issue/m-p/129058#M22976</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/1277/prakashpunj.html"&gt;@Prakash Punj&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Have you addressed this issue? &lt;/P&gt;</description>
      <pubDate>Fri, 30 Dec 2016 11:26:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NameNode-safemode-issue/m-p/129058#M22976</guid>
      <dc:creator>cstanca</dc:creator>
      <dc:date>2016-12-30T11:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: NameNode safemode issue</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NameNode-safemode-issue/m-p/129059#M22977</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/1277/prakashpunj.html"&gt;@Prakash Punj&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You need to take the NameNode out of the Safe Mode. This is a common error encountered when the NameNode is moved to Safe Mode to take a checkpoint. Documentation instructions should probably be updated to add a warning.&lt;/P&gt;&lt;PRE&gt;sudo su hdfs -l -c 'hdfs dfsadmin -safemode leave'&lt;/PRE&gt;</description>
      <pubDate>Fri, 30 Dec 2016 11:35:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NameNode-safemode-issue/m-p/129059#M22977</guid>
      <dc:creator>cstanca</dc:creator>
      <dc:date>2016-12-30T11:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: NameNode safemode issue</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NameNode-safemode-issue/m-p/129060#M22978</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/1277/prakashpunj.html"&gt;@Prakash Punj&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/1277/prakashpunj.html"&gt;&lt;/A&gt;I just tested it. It is easy to reproduce. Stop YARN. Move the NameNode in Safe Mode and take a checkpoint. Attempt to Start YARN. It won't and the error is exactly the one described in the article. Take NameNode out of Safe Mode. Start YARN. All is good now!&lt;/P&gt;&lt;P&gt;Please vote/accept.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Dec 2016 11:39:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NameNode-safemode-issue/m-p/129060#M22978</guid>
      <dc:creator>cstanca</dc:creator>
      <dc:date>2016-12-30T11:39:43Z</dc:date>
    </item>
  </channel>
</rss>

