<?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: Leave Safemode in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Leave-Safemode/m-p/51187#M54503</link>
    <description>&lt;P&gt;Finally I can get my cluster up and running! As msbigelow said two of my three JNs were up and running but bad rdeclared in hdfs-site.xml dfs.namenode.shared.edits.dir property.&lt;/P&gt;&lt;P&gt;After change it the namenode service starts!&lt;/P&gt;&lt;P&gt;Now everything apperars to be in order.&lt;/P&gt;&lt;P&gt;I hope my problem could help in this community.&lt;/P&gt;&lt;P&gt;Thanks &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/18441"&gt;@saranvisa&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/18127"&gt;@mbigelow&lt;/a&gt;!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Feb 2017 14:01:48 GMT</pubDate>
    <dc:creator>gsalerno</dc:creator>
    <dc:date>2017-02-20T14:01:48Z</dc:date>
    <item>
      <title>Leave Safemode</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Leave-Safemode/m-p/50948#M54491</link>
      <description>&lt;P&gt;Hello everyone!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My name is Guido, currently I'm facing a problem with a name node that is in safe mode in a test lab.&lt;/P&gt;&lt;P&gt;When&amp;nbsp;I ran the "hdfs dfsadmin -safemode leave" command the result that I got is "Access&amp;nbsp;denied for user &lt;STRONG&gt;&lt;EM&gt;my_user_account.&lt;/EM&gt;&lt;/STRONG&gt; Superuser privilege is required".&lt;/P&gt;&lt;P&gt;The cluster is integrated with AD Kerberos protocol and my account can authinticate using kinit command.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to run "sudo -u hdfs hdfs dfsadmin -safemode leave" command in order to provide the hdfs user credentials but the result was:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2017-02-15 12:56:41,747 WARN security.UserGroupInformation: PriviledgedActionException as:hdfs (auth:KERBEROS) cause:javax.security.sasl.SaslException: GSS initiate failed [Caused by GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)]&lt;BR /&gt;2017-02-15 12:56:41,749 WARN ipc.Client: Exception encountered while connecting to the server : javax.security.sasl.SaslException: GSS initiate failed [Caused by GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)]&lt;BR /&gt;2017-02-15 12:56:41,749 WARN security.UserGroupInformation: PriviledgedActionException as:hdfs (auth:KERBEROS) cause:java.io.IOException: javax.security.sasl.SaslException: GSS initiate failed [Caused by GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)]&lt;BR /&gt;safemode: Failed on local exception: java.io.IOException: javax.security.sasl.SaslException: GSS initiate failed [Caused by GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)]; Host Details : local host is: "&lt;EM&gt;&lt;STRONG&gt;my_name_node_fqdn/my_name_node_ip&lt;/STRONG&gt;&lt;/EM&gt;"; destination host is: "&lt;EM&gt;&lt;STRONG&gt;my_name_node_fqdn&lt;/STRONG&gt;&lt;/EM&gt;":8020;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Notes:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;my_user_account = my user name, for example pepe&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;my_name_node_fqdn = the fqdn of the name node, for example namenode01.mydomain.com&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;my_name_node_ip = the ip address of the name node, for example 10.0.0.1&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I really appreciate your help.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 11:05:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Leave-Safemode/m-p/50948#M54491</guid>
      <dc:creator>gsalerno</dc:creator>
      <dc:date>2022-09-16T11:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: Leave Safemode</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Leave-Safemode/m-p/50954#M54492</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/20773"&gt;@gsalerno&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems kerberos enabled in your cluster and&amp;nbsp;kerberos ticket is missing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After you login, you have to enter $kinit uid@REALM.COM and enter the kerberos password then try to leave safemode as sudo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Kumar&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 15:01:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Leave-Safemode/m-p/50954#M54492</guid>
      <dc:creator>saranvisa</dc:creator>
      <dc:date>2017-02-15T15:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: Leave Safemode</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Leave-Safemode/m-p/50968#M54493</link>
      <description>&lt;P&gt;Thanks Kumar!&lt;/P&gt;&lt;P&gt;I chose another keytab an it works but when I ran "sudo -u hdfs hdfs dfsadmin -safemode leave" I got this error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;safemode: Call From &lt;EM&gt;&lt;STRONG&gt;my_name_node_fqdn/my_name_node_ip &lt;/STRONG&gt;&lt;/EM&gt;to &lt;EM&gt;&lt;STRONG&gt;my_name_node_fqdn&lt;/STRONG&gt;&lt;/EM&gt;:8020 failed on connection exception: java.net.ConnectException: Connection refused; For more details see: &lt;A href="http://wiki.apache.org/hadoop/ConnectionRefused" target="_blank"&gt;http://wiki.apache.org/hadoop/ConnectionRefused&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is no much information but I'm trying to figure it out.&lt;/P&gt;&lt;P&gt;If I got something else I'll let you know.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 16:48:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Leave-Safemode/m-p/50968#M54493</guid>
      <dc:creator>gsalerno</dc:creator>
      <dc:date>2017-02-15T16:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: Leave Safemode</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Leave-Safemode/m-p/51061#M54494</link>
      <description>Something is wrong with the NN process. Restart it and tail the log to see what exception pops up. Also ensure that the process is listening on port 8020.</description>
      <pubDate>Fri, 17 Feb 2017 08:14:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Leave-Safemode/m-p/51061#M54494</guid>
      <dc:creator>mbigelow</dc:creator>
      <dc:date>2017-02-17T08:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: Leave Safemode</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Leave-Safemode/m-p/51068#M54495</link>
      <description>&lt;P&gt;Hello mbigelow, thanks for your help.&lt;/P&gt;&lt;P&gt;My namenode is not listening on port 8020.&lt;/P&gt;&lt;P&gt;The log is copied below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Feb 17 14:54:36 name_node-m0 namenode: INFO org.apache.hadoop.hdfs.server.namenode.NameNode: registered UNIX signal handlers for [TERM, HUP, INT]&lt;BR /&gt;Feb 17 14:54:36 name_node-m0 namenode: INFO org.apache.hadoop.hdfs.server.namenode.NameNode: createNameNode []&lt;BR /&gt;Feb 17 14:54:37 name_node-m0 namenode: INFO org.apache.hadoop.hdfs.server.namenode.NameNode: fs.defaultFS is hdfs://hdev&lt;BR /&gt;Feb 17 14:54:37 name_node-m0 namenode: INFO org.apache.hadoop.hdfs.server.namenode.NameNode: Clients are to use hdev to access this namenode/service.&lt;BR /&gt;Feb 17 14:54:40 name_node-m0 namenode: INFO org.apache.hadoop.hdfs.server.namenode.NameNode: Caching file names occuring more than 10 times&lt;BR /&gt;Feb 17 14:54:41 name_node-m0 namenode: ERROR org.apache.hadoop.hdfs.server.namenode.NameNode: Failed to start namenode.&lt;BR /&gt;Feb 17 14:54:41 localhost java.lang.IllegalArgumentException: Unable to construct journal, qjournal://name_node-m0.my_domain:8485;name_node-m1.my_domain:8485;hadoop-01.my_domain:8485/hdev&lt;BR /&gt;Feb 17 14:54:41 localhost at org.apache.hadoop.hdfs.server.namenode.FSEditLog.createJournal(FSEditLog.java:1607)&lt;BR /&gt;Feb 17 14:54:41 localhost at org.apache.hadoop.hdfs.server.namenode.FSEditLog.initJournals(FSEditLog.java:276)&lt;BR /&gt;Feb 17 14:54:41 localhost at org.apache.hadoop.hdfs.server.namenode.FSEditLog.initSharedJournalsForRead(FSEditLog.java:254)&lt;BR /&gt;Feb 17 14:54:41 localhost at org.apache.hadoop.hdfs.server.namenode.FSImage.initEditLog(FSImage.java:787)&lt;BR /&gt;Feb 17 14:54:41 localhost at org.apache.hadoop.hdfs.server.namenode.FSImage.loadFSImage(FSImage.java:626)&lt;BR /&gt;Feb 17 14:54:41 localhost at org.apache.hadoop.hdfs.server.namenode.FSImage.recoverTransitionRead(FSImage.java:281)&lt;BR /&gt;Feb 17 14:54:41 localhost at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.loadFSImage(FSNamesystem.java:1063)&lt;BR /&gt;Feb 17 14:54:41 localhost at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.loadFromDisk(FSNamesystem.java:767)&lt;BR /&gt;Feb 17 14:54:41 localhost at org.apache.hadoop.hdfs.server.namenode.NameNode.loadNamesystem(NameNode.java:609)&lt;BR /&gt;Feb 17 14:54:41 localhost at org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:670)&lt;BR /&gt;Feb 17 14:54:41 localhost at org.apache.hadoop.hdfs.server.namenode.NameNode.&amp;lt;init&amp;gt;(NameNode.java:838)&lt;BR /&gt;Feb 17 14:54:41 localhost at org.apache.hadoop.hdfs.server.namenode.NameNode.&amp;lt;init&amp;gt;(NameNode.java:817)&lt;BR /&gt;Feb 17 14:54:41 localhost at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1538)&lt;BR /&gt;Feb 17 14:54:41 localhost at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1606)&lt;BR /&gt;Feb 17 14:54:41 Caused by: java.lang.reflect.InvocationTargetException&lt;BR /&gt;Feb 17 14:54:41 localhost at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)&lt;BR /&gt;Feb 17 14:54:41 localhost at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)&lt;BR /&gt;Feb 17 14:54:41 localhost at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)&lt;BR /&gt;Feb 17 14:54:41 localhost at java.lang.reflect.Constructor.newInstance(Constructor.java:526)&lt;BR /&gt;Feb 17 14:54:41 localhost at org.apache.hadoop.hdfs.server.namenode.FSEditLog.createJournal(FSEditLog.java:1605)&lt;BR /&gt;Feb 17 14:54:41 localhost ... 13 more&lt;BR /&gt;Feb 17 14:54:41 Caused by: java.lang.NullPointerException&lt;BR /&gt;Feb 17 14:54:41 localhost at org.apache.hadoop.hdfs.qjournal.client.IPCLoggerChannelMetrics.getName(IPCLoggerChannelMetrics.java:107)&lt;BR /&gt;Feb 17 14:54:41 localhost at org.apache.hadoop.hdfs.qjournal.client.IPCLoggerChannelMetrics.create(IPCLoggerChannelMetrics.java:91)&lt;BR /&gt;Feb 17 14:54:41 localhost at org.apache.hadoop.hdfs.qjournal.client.IPCLoggerChannel.&amp;lt;init&amp;gt;(IPCLoggerChannel.java:178)&lt;BR /&gt;Feb 17 14:54:41 localhost at org.apache.hadoop.hdfs.qjournal.client.IPCLoggerChannel$1.createLogger(IPCLoggerChannel.java:156)&lt;BR /&gt;Feb 17 14:54:41 localhost at org.apache.hadoop.hdfs.qjournal.client.QuorumJournalManager.createLoggers(QuorumJournalManager.java:367)&lt;BR /&gt;Feb 17 14:54:41 localhost at org.apache.hadoop.hdfs.qjournal.client.QuorumJournalManager.createLoggers(QuorumJournalManager.java:149)&lt;BR /&gt;Feb 17 14:54:41 localhost at org.apache.hadoop.hdfs.qjournal.client.QuorumJournalManager.&amp;lt;init&amp;gt;(QuorumJournalManager.java:116)&lt;BR /&gt;Feb 17 14:54:41 localhost at org.apache.hadoop.hdfs.qjournal.client.QuorumJournalManager.&amp;lt;init&amp;gt;(QuorumJournalManager.java:105)&lt;BR /&gt;Feb 17 14:54:41 localhost ... 18 more&lt;BR /&gt;Feb 17 14:54:41 name_node-m0 namenode: INFO org.apache.hadoop.hdfs.server.namenode.NameNode: SHUTDOWN_MSG: #012/************************************************************#012SHUTDOWN_MSG: Shutting down NameNode at name_node-m0.my_domain/XXX:XXX:XXX:XXX#012************************************************************/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 15:10:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Leave-Safemode/m-p/51068#M54495</guid>
      <dc:creator>gsalerno</dc:creator>
      <dc:date>2017-02-17T15:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: Leave Safemode</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Leave-Safemode/m-p/51079#M54499</link>
      <description>Are at least two of the JournalNodes up and running?</description>
      <pubDate>Fri, 17 Feb 2017 19:18:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Leave-Safemode/m-p/51079#M54499</guid>
      <dc:creator>mbigelow</dc:creator>
      <dc:date>2017-02-17T19:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: Leave Safemode</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Leave-Safemode/m-p/51080#M54500</link>
      <description>&lt;P&gt;Yes, there are three yournal nodes and at least two are up and running.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 19:25:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Leave-Safemode/m-p/51080#M54500</guid>
      <dc:creator>gsalerno</dc:creator>
      <dc:date>2017-02-17T19:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: Leave Safemode</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Leave-Safemode/m-p/51081#M54501</link>
      <description>Do all of these resolve correctly from all three nodes?&lt;BR /&gt;&lt;BR /&gt;use this cmd to verify:&lt;BR /&gt;python -c "import socket; print socket.getfqdn(); print&lt;BR /&gt;socket.gethostbyname(socket.getfqdn())"&lt;BR /&gt;&lt;BR /&gt;name_node-m0.my_domain&lt;BR /&gt;name_node-m1.my_domain&lt;BR /&gt;hadoop-01.my_domain</description>
      <pubDate>Fri, 17 Feb 2017 19:29:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Leave-Safemode/m-p/51081#M54501</guid>
      <dc:creator>mbigelow</dc:creator>
      <dc:date>2017-02-17T19:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: Leave Safemode</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Leave-Safemode/m-p/51181#M54502</link>
      <description>&lt;P&gt;Yeah, three nodes resolve&amp;nbsp;correctly the python script.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2017 11:39:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Leave-Safemode/m-p/51181#M54502</guid>
      <dc:creator>gsalerno</dc:creator>
      <dc:date>2017-02-20T11:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: Leave Safemode</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Leave-Safemode/m-p/51187#M54503</link>
      <description>&lt;P&gt;Finally I can get my cluster up and running! As msbigelow said two of my three JNs were up and running but bad rdeclared in hdfs-site.xml dfs.namenode.shared.edits.dir property.&lt;/P&gt;&lt;P&gt;After change it the namenode service starts!&lt;/P&gt;&lt;P&gt;Now everything apperars to be in order.&lt;/P&gt;&lt;P&gt;I hope my problem could help in this community.&lt;/P&gt;&lt;P&gt;Thanks &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/18441"&gt;@saranvisa&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/18127"&gt;@mbigelow&lt;/a&gt;!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2017 14:01:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Leave-Safemode/m-p/51187#M54503</guid>
      <dc:creator>gsalerno</dc:creator>
      <dc:date>2017-02-20T14:01:48Z</dc:date>
    </item>
  </channel>
</rss>

