<?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 Accessing HDFS shows Name node in safemode in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Accessing-HDFS-shows-Name-node-in-safemode/m-p/100368#M13252</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We have configured the NN in HA mode, it is a kerberized cluster. During the weekend we have shutdown all the nodes and today started all the nodes.  I've valid TGT issues before issuing hadoop fs -ls commands.&lt;/P&gt;&lt;P&gt;Now when I trying to issue hadoop fs -ls I see the following stack trace : ( Saying it is under safemode). When I checked the HDFS was really in Safemode. Using shell command I made it to move out of safemode. &lt;/P&gt;&lt;P&gt;But still when we issue hadoop fs -ls / on the console I still see that NN are in safe mode.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;PRE&gt;15/12/21 16:37:13 INFO retry.RetryInvocationHandler: Exception while invoking getFileInfo of class ClientNamenodeProtocolTranslatorPB over Namenode_HOST_2/192.168.1.4:8020 after 1 fail over attempts. Trying to fail over after sleeping for 676ms.

org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.ipc.StandbyException): Operation category READ is not supported in state standby
        at org.apache.hadoop.hdfs.server.namenode.ha.StandbyState.checkOperation(StandbyState.java:87)
        at org.apache.hadoop.hdfs.server.namenode.NameNode$NameNodeHAContext.checkOperation(NameNode.java:1872)
        at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.checkOperation(FSNamesystem.java:1306)

&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE&gt;&lt;PRE&gt;$ hadoop dfsadmin -safemode get 

DEPRECATED: Use of this script to execute hdfs command is deprecated.
Instead use the hdfs command for it. &lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;</description>
    <pubDate>Tue, 22 Dec 2015 02:08:10 GMT</pubDate>
    <dc:creator>darpan_be</dc:creator>
    <dc:date>2015-12-22T02:08:10Z</dc:date>
    <item>
      <title>Accessing HDFS shows Name node in safemode</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Accessing-HDFS-shows-Name-node-in-safemode/m-p/100368#M13252</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We have configured the NN in HA mode, it is a kerberized cluster. During the weekend we have shutdown all the nodes and today started all the nodes.  I've valid TGT issues before issuing hadoop fs -ls commands.&lt;/P&gt;&lt;P&gt;Now when I trying to issue hadoop fs -ls I see the following stack trace : ( Saying it is under safemode). When I checked the HDFS was really in Safemode. Using shell command I made it to move out of safemode. &lt;/P&gt;&lt;P&gt;But still when we issue hadoop fs -ls / on the console I still see that NN are in safe mode.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;PRE&gt;15/12/21 16:37:13 INFO retry.RetryInvocationHandler: Exception while invoking getFileInfo of class ClientNamenodeProtocolTranslatorPB over Namenode_HOST_2/192.168.1.4:8020 after 1 fail over attempts. Trying to fail over after sleeping for 676ms.

org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.ipc.StandbyException): Operation category READ is not supported in state standby
        at org.apache.hadoop.hdfs.server.namenode.ha.StandbyState.checkOperation(StandbyState.java:87)
        at org.apache.hadoop.hdfs.server.namenode.NameNode$NameNodeHAContext.checkOperation(NameNode.java:1872)
        at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.checkOperation(FSNamesystem.java:1306)

&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE&gt;&lt;PRE&gt;$ hadoop dfsadmin -safemode get 

DEPRECATED: Use of this script to execute hdfs command is deprecated.
Instead use the hdfs command for it. &lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Tue, 22 Dec 2015 02:08:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Accessing-HDFS-shows-Name-node-in-safemode/m-p/100368#M13252</guid>
      <dc:creator>darpan_be</dc:creator>
      <dc:date>2015-12-22T02:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing HDFS shows Name node in safemode</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Accessing-HDFS-shows-Name-node-in-safemode/m-p/100369#M13253</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1660/darpanbe.html" nodeid="1660"&gt;@Darpan Patel&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;Looks like failover is still in progress.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Trying to fail over after sleeping for 676ms. &lt;/STRONG&gt;org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.ipc.StandbyException): &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Operation category READ is not supported in state standby at..&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Restart HDFS components and then try again..&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2015 02:11:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Accessing-HDFS-shows-Name-node-in-safemode/m-p/100369#M13253</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2015-12-22T02:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing HDFS shows Name node in safemode</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Accessing-HDFS-shows-Name-node-in-safemode/m-p/100370#M13254</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/140/nsabharwal.html" nodeid="140"&gt;@Neeraj Sabharwal&lt;/A&gt; I thought the same but I've hardly 50 MB of data on the cluster. And it is showing this status from last 3 hours. &lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2015 02:16:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Accessing-HDFS-shows-Name-node-in-safemode/m-p/100370#M13254</guid>
      <dc:creator>darpan_be</dc:creator>
      <dc:date>2015-12-22T02:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing HDFS shows Name node in safemode</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Accessing-HDFS-shows-Name-node-in-safemode/m-p/100371#M13255</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1660/darpanbe.html" nodeid="1660"&gt;@Darpan Patel&lt;/A&gt; Definitely something wrong..You may want to failover again or restart services. Is Ambari in the picture?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2015 02:18:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Accessing-HDFS-shows-Name-node-in-safemode/m-p/100371#M13255</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2015-12-22T02:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing HDFS shows Name node in safemode</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Accessing-HDFS-shows-Name-node-in-safemode/m-p/100372#M13256</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/140/nsabharwal.html" nodeid="140"&gt;@Neeraj Sabharwal&lt;/A&gt;&lt;P&gt;I started all the datanodes, and then restarted the HDFS master process, this worked!&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2015 02:59:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Accessing-HDFS-shows-Name-node-in-safemode/m-p/100372#M13256</guid>
      <dc:creator>darpan_be</dc:creator>
      <dc:date>2015-12-22T02:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing HDFS shows Name node in safemode</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Accessing-HDFS-shows-Name-node-in-safemode/m-p/100373#M13257</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1660/darpanbe.html" nodeid="1660"&gt;@Darpan Patel&lt;/A&gt; Perfect! Please accept one of the answers to close the thread as part of the best practice. &lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2015 03:00:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Accessing-HDFS-shows-Name-node-in-safemode/m-p/100373#M13257</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2015-12-22T03:00:18Z</dc:date>
    </item>
  </channel>
</rss>

