<?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 not starting after enabling Kerberos on single node cluster in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/NameNode-not-starting-after-enabling-Kerberos-on-single-node/m-p/213226#M175154</link>
    <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/45324/nhgodwal.html"&gt;@Neha G&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Glad that it worked for you. Can you please accept the answer and start a new thread for this so that the main thread doesn't get deviated. Please share more logs related to the alerts in the new thread.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;</description>
    <pubDate>Mon, 16 Oct 2017 11:13:04 GMT</pubDate>
    <dc:creator>asirna</dc:creator>
    <dc:date>2017-10-16T11:13:04Z</dc:date>
    <item>
      <title>NameNode not starting after enabling Kerberos on single node cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NameNode-not-starting-after-enabling-Kerberos-on-single-node/m-p/213216#M175144</link>
      <description>&lt;P&gt;I have setup single node HDP2.6 deployed using Ambari.&lt;/P&gt;&lt;P&gt;My single node &lt;STRONG&gt;hostname &lt;/STRONG&gt;is&lt;STRONG&gt; nhknox-Virtual-Machine.mad.lab&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I have KDC server setup at Domain Controller as Active Directory Domain Services.&lt;/P&gt;&lt;P&gt;Now I am enabling Kerberos, which is going through fine. Then, on ambari wizard it stopping all the services, which is fine too. Then, it is trying to start all the services after kerberized hadoop. &lt;/P&gt;&lt;P&gt;There my Namenode is not starting and below are the logs for the same. Please suggest for the solution&lt;/P&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;stderr: &lt;BR /&gt;&lt;BR /&gt; stdout:&lt;BR /&gt;2017-10-15 13:58:14,561 - Execute['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'ulimit -c unlimited ;  /usr/hdp/current/hadoop-client/sbin/hadoop-daemon.sh --config /usr/hdp/current/hadoop-client/conf start namenode''] {'environment': {'HADOOP_LIBEXEC_DIR': '/usr/hdp/current/hadoop-client/libexec'}, 'not_if': 'ambari-sudo.sh  -H -E test -f /var/run/hadoop/hdfs/hadoop-hdfs-namenode.pid &amp;amp;&amp;amp; ambari-sudo.sh  -H -E pgrep -F /var/run/hadoop/hdfs/hadoop-hdfs-namenode.pid'}&lt;BR /&gt;2017-10-15 13:58:18,931 - Execute['/usr/bin/kinit -kt /etc/security/keytabs/hdfs.headless.keytab hdfs-testknox@MAD.LAB'] {'user': 'hdfs'}&lt;BR /&gt;2017-10-15 13:58:19,157 - Waiting for this NameNode to leave Safemode due to the following conditions: HA: False, isActive: True, upgradeType: None&lt;BR /&gt;2017-10-15 13:58:19,157 - Waiting up to 19 minutes for the NameNode to leave Safemode...&lt;BR /&gt;2017-10-15 13:58:19,158 - Execute['/usr/hdp/current/hadoop-hdfs-namenode/bin/hdfs dfsadmin -fs hdfs://nhknox-virtual-machine.mad.lab:8020 -safemode get | grep 'Safe mode is OFF''] {'logoutput': True, 'tries': 115, 'user': 'hdfs', 'try_sleep': 10}&lt;BR /&gt;safemode: Call From nhknox-virtual-machine.mad.lab/127.0.1.1 to nhknox-virtual-machine.mad.lab: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;BR /&gt;2017-10-15 13:58:44,683 - Retrying after 10 seconds. Reason: Execution of '/usr/hdp/current/hadoop-hdfs-namenode/bin/hdfs dfsadmin -fs hdfs://nhknox-virtual-machine.mad.lab:8020 -safemode get | grep 'Safe mode is OFF'' returned 1. safemode: Call From nhknox-virtual-machine.mad.lab/127.0.1.1 to nhknox-virtual-machine.mad.lab: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;BR /&gt;2017-10-15 13:59:16,062 - Retrying after 10 seconds. Reason: Execution of '/usr/hdp/current/hadoop-hdfs-namenode/bin/hdfs dfsadmin -fs hdfs://nhknox-virtual-machine.mad.lab:8020 -safemode get | grep 'Safe mode is OFF'' returned 1. &lt;BR /&gt;2017-10-15 13:59:45,987 - Retrying after 10 seconds. Reason: Execution of '/usr/hdp/current/hadoop-hdfs-namenode/bin/hdfs dfsadmin -fs hdfs://nhknox-virtual-machine.mad.lab:8020 -safemode get | grep 'Safe mode is OFF'' returned 1. &lt;BR /&gt;2017-10-15 14:00:15,016 - Retrying after 10 seconds. Reason: Execution of '/usr/hdp/current/hadoop-hdfs-namenode/bin/hdfs dfsadmin -fs hdfs://nhknox-virtual-machine.mad.lab:8020 -safemode get | grep 'Safe mode is OFF'' returned 1.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Mon, 16 Oct 2017 02:12:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NameNode-not-starting-after-enabling-Kerberos-on-single-node/m-p/213216#M175144</guid>
      <dc:creator>nhgodwal</dc:creator>
      <dc:date>2017-10-16T02:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: NameNode not starting after enabling Kerberos on single node cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NameNode-not-starting-after-enabling-Kerberos-on-single-node/m-p/213217#M175145</link>
      <description>&lt;P&gt;&lt;EM&gt;@&lt;A href="https://community.hortonworks.com/users/45324/nhgodwal.html"&gt;Neha G&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The problem is that your HDFS is &lt;STRONG&gt;Safe mode &lt;/STRONG&gt;do this to resolve the issue&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;As root  switch user to hdfs&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;# su - hdfs&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Then &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;# hdfs dfsadmin -safemode leave&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Then try restarting the namenode it should start successfully&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2017 02:20:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NameNode-not-starting-after-enabling-Kerberos-on-single-node/m-p/213217#M175145</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2017-10-16T02:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: NameNode not starting after enabling Kerberos on single node cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NameNode-not-starting-after-enabling-Kerberos-on-single-node/m-p/213218#M175146</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1271/sheltong.html" nodeid="1271"&gt;@Geoffrey Shelton Okot&lt;/A&gt; &lt;/P&gt;&lt;P&gt;This gives me below error on terminal :&lt;/P&gt;&lt;P&gt;safemode: Call From nhknox-virtual-machine.mad.lab/127.0.1.1 to nhknox-virtual-machine.mad.lab:8020 failed on connection exception: java.net.ConnectException: Connection refused; For more details see: &lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2017 02:31:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NameNode-not-starting-after-enabling-Kerberos-on-single-node/m-p/213218#M175146</guid>
      <dc:creator>nhgodwal</dc:creator>
      <dc:date>2017-10-16T02:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: NameNode not starting after enabling Kerberos on single node cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NameNode-not-starting-after-enabling-Kerberos-on-single-node/m-p/213219#M175147</link>
      <description>&lt;P&gt;&lt;EM&gt; @&lt;A href="https://community.hortonworks.com/users/45324/nhgodwal.html"&gt;Neha G&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Can you copy me the commands you used, just to be sure.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Is it a single node cluster? And always include the details to  error stack .&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2017 02:42:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NameNode-not-starting-after-enabling-Kerberos-on-single-node/m-p/213219#M175147</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2017-10-16T02:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: NameNode not starting after enabling Kerberos on single node cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NameNode-not-starting-after-enabling-Kerberos-on-single-node/m-p/213220#M175148</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1271/sheltong.html" nodeid="1271"&gt;@Geoffrey Shelton Okot&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Since I am running ambari-server in non-root mode I ran below command for leaving safemode:&lt;/P&gt;&lt;P&gt;sudo -u hdfs hdfs dfsadmin -safemode leave&lt;/P&gt;&lt;P&gt;And this got me the error "Connection Refused" error :&lt;/P&gt;&lt;P&gt;&lt;EM&gt; safemode: Call From nhknox-virtual-machine.mad.lab/127.0.1.1 to nhknox-virtual-machine.mad.lab:8020 failed on connection exception: java.net.ConnectException: Connection refused&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Yes, this is a single node cluster as I mentioned in my starting post. I have pasted the error log which I am seeing while Namenode getting restarted in the starting post.&lt;/P&gt;&lt;P&gt;Please let me know what more details I need to paste.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;**Note: I also tried "telnet localhost 8020" or "telnet server-hostname 8020" and "netstat -atn | grep 8020" .....it seems 8020 port is not Listening mode.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2017 03:03:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NameNode-not-starting-after-enabling-Kerberos-on-single-node/m-p/213220#M175148</guid>
      <dc:creator>nhgodwal</dc:creator>
      <dc:date>2017-10-16T03:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: NameNode not starting after enabling Kerberos on single node cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NameNode-not-starting-after-enabling-Kerberos-on-single-node/m-p/213221#M175149</link>
      <description>&lt;P&gt;&lt;EM&gt;@&lt;A href="https://community.hortonworks.com/users/45324/nhgodwal.html"&gt;Neha G&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;I think I have seen a typo error in your command can you copy and paste the below command &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;sudo su - hdfs hdfs dfsadmin -safemode leave&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;And let me know &lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2017 03:16:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NameNode-not-starting-after-enabling-Kerberos-on-single-node/m-p/213221#M175149</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2017-10-16T03:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: NameNode not starting after enabling Kerberos on single node cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NameNode-not-starting-after-enabling-Kerberos-on-single-node/m-p/213222#M175150</link>
      <description>&lt;P&gt;
	&lt;A rel="user" href="https://community.cloudera.com/users/1271/sheltong.html" nodeid="1271"&gt;@Geoffrey Shelton Okot&lt;/A&gt;&lt;/P&gt;&lt;P&gt;
	I copied and pasted this -&amp;gt;&lt;/P&gt;&lt;PRE&gt;
	sudo su - hdfs hdfs dfsadmin -safemode leave&lt;/PRE&gt;&lt;P&gt;
	It says "cannot execute afemode"&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2017 03:22:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NameNode-not-starting-after-enabling-Kerberos-on-single-node/m-p/213222#M175150</guid>
      <dc:creator>nhgodwal</dc:creator>
      <dc:date>2017-10-16T03:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: NameNode not starting after enabling Kerberos on single node cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NameNode-not-starting-after-enabling-Kerberos-on-single-node/m-p/213223#M175151</link>
      <description>&lt;P&gt;&lt;EM&gt;@&lt;A href="https://community.hortonworks.com/users/45324/nhgodwal.html"&gt;Neha G&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If you have sudo privileges just do this you will need a valid kerberos ticket just realised you have a kerberized cluster&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;$sudo su - hdfs&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;List the correct principal for hdfs&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;$ klist -kt /etc/security/keytabs/hdfs.headless.keytab &lt;BR /&gt;&lt;/EM&gt;&lt;EM&gt;Keytab name: FILE:/etc/security/keytabs/hdfs.headless.keytab&lt;BR /&gt;&lt;/EM&gt;&lt;EM&gt;KVNO                 Timestamp               Principal &lt;BR /&gt;&lt;/EM&gt;&lt;EM&gt;---- ------------------- ------------------------------------------------------ &lt;BR /&gt;&lt;/EM&gt;&lt;EM&gt;1 08/24/2017          15:42:23              hdfs-cluster@YOUR_REALM &lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Then grab a valid kerbero ticket &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;$ kinit -kt /etc/security/keytabs/hdfs.headless.keytab hdfs-cluster@YOUR_REALM&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Then&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;$  hdfs dfsadmin -safemode leave&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;That should work  now ! &lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2017 04:11:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NameNode-not-starting-after-enabling-Kerberos-on-single-node/m-p/213223#M175151</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2017-10-16T04:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: NameNode not starting after enabling Kerberos on single node cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NameNode-not-starting-after-enabling-Kerberos-on-single-node/m-p/213224#M175152</link>
      <description>&lt;P&gt; &lt;A rel="user" href="https://community.cloudera.com/users/45324/nhgodwal.html" nodeid="45324"&gt;@Neha G&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Is your hostname exactly&lt;STRONG&gt; "&lt;/STRONG&gt;&lt;STRONG&gt;nhknox-Virtual-Machine.mad.lab" or "&lt;/STRONG&gt;&lt;STRONG&gt;nhknox-virtual-machine.mad.lab". &lt;/STRONG&gt;We have seen issues where hostname in Mixed case has caused issues. If that is the case for you, change the hostname to all small letters and restart ambari server and then try restarting the namenode.&lt;/P&gt;&lt;P&gt;If your hostname has all small letters, can you please paste your namenode logs under (/var/log/hadoop-hdfs/hdfs)&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2017 09:16:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NameNode-not-starting-after-enabling-Kerberos-on-single-node/m-p/213224#M175152</guid>
      <dc:creator>asirna</dc:creator>
      <dc:date>2017-10-16T09:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: NameNode not starting after enabling Kerberos on single node cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NameNode-not-starting-after-enabling-Kerberos-on-single-node/m-p/213225#M175153</link>
      <description>&lt;P&gt;Thanks, &lt;A rel="user" href="https://community.cloudera.com/users/14200/asirna.html" nodeid="14200"&gt;@Aditya Sirna&lt;/A&gt;, hostname fix worked for me. All services started, but I am getting few alerts &lt;/P&gt;&lt;P&gt;1) HDFS; alert name=NameNode Blocks Health:&lt;/P&gt;&lt;P&gt;Total Block:[11], Missing Blocks[11]&lt;/P&gt;&lt;P&gt;2) YARN; alert name=NodeManager Health:&lt;/P&gt;&lt;P&gt;Connection refused for port 8042&lt;/P&gt;&lt;P&gt;3) YARN; alert name=NodeManager Web UI:&lt;/P&gt;&lt;P&gt;Connection refused for port 8042&lt;/P&gt;&lt;P&gt;4) YARN; alert name=Percent NodeManagers Available&lt;/P&gt;&lt;P&gt;affected:[1], total:[1]&lt;/P&gt;&lt;P&gt;Do you have any suggestions?&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2017 10:53:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NameNode-not-starting-after-enabling-Kerberos-on-single-node/m-p/213225#M175153</guid>
      <dc:creator>nhgodwal</dc:creator>
      <dc:date>2017-10-16T10:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: NameNode not starting after enabling Kerberos on single node cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NameNode-not-starting-after-enabling-Kerberos-on-single-node/m-p/213226#M175154</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/45324/nhgodwal.html"&gt;@Neha G&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Glad that it worked for you. Can you please accept the answer and start a new thread for this so that the main thread doesn't get deviated. Please share more logs related to the alerts in the new thread.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2017 11:13:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NameNode-not-starting-after-enabling-Kerberos-on-single-node/m-p/213226#M175154</guid>
      <dc:creator>asirna</dc:creator>
      <dc:date>2017-10-16T11:13:04Z</dc:date>
    </item>
  </channel>
</rss>

