<?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: Unable to start namenode after enabling Kerberos in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-start-namenode-after-enabling-Kerberos/m-p/177702#M139950</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/322/rlevas.html" nodeid="322"&gt;@Robert Levas&lt;/A&gt; can you confirm if the solution is valid, as I am facing same issue on other cluster as well, and not sure of workaround.&lt;/P&gt;</description>
    <pubDate>Wed, 10 Jan 2018 03:06:35 GMT</pubDate>
    <dc:creator>umesh_kumbhar</dc:creator>
    <dc:date>2018-01-10T03:06:35Z</dc:date>
    <item>
      <title>Unable to start namenode after enabling Kerberos</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-start-namenode-after-enabling-Kerberos/m-p/177696#M139944</link>
      <description>&lt;P&gt;
	I have distributed setup of Hadoop cluster with 2 NN and 3 DN. I have enabled Kerberos on the cluster as per the steps mentioned in security document using Ambari wizard. On last step of Wizard, Ambari trying to start the services but Name node services are not getting started. In the namenode log file I can see below error:&lt;/P&gt;&lt;PRE&gt;2017-12-28 07:24:11,727 ERROR namenode.EditLogInputStream (EditLogFileInputStream.java:nextOpImpl(194)) - caught exception initializing &lt;A href="http://ip-***-***-**-**.us-east-1.ec2.aws.net:8480/getJournal?jid=krbhdfs&amp;amp;segmentTxId=2979&amp;amp;storageInfo=-63%3A516351869%3A0%3ACID-3a8b7973-c162-4cb5-abbc-d90a2738580b" target="_blank"&gt;http://ip-***-***-**-**.us-east-1.ec2.aws.net:8480/getJournal?jid=krbhdfs&amp;amp;segmentTxId=2979&amp;amp;storageInfo=-63%3A516351869%3A0%3ACID-3a8b7973-c162-4cb5-abbc-d90a2738580b&lt;/A&gt;
java.io.IOException: org.apache.hadoop.security.authentication.client.AuthenticationException: Authentication failed, URL: &lt;A href="http://ip-***-***-**-**.us-east-1.ec2.aws.net:8480/getJournal?jid=krbhdfs&amp;amp;segmentTxId=2979&amp;amp;storageInfo=-63%3A516351869%3A0%3ACID-3a8b7973-c162-4cb5-abbc-d90a2738580b&amp;amp;user.name=nn/ip-100-122-218-159.us-east-1.ec2.aws.net@KERBTEST.COM" target="_blank"&gt;http://ip-***-***-**-**.us-east-1.ec2.aws.net:8480/getJournal?jid=krbhdfs&amp;amp;segmentTxId=2979&amp;amp;storageInfo=-63%3A516351869%3A0%3ACID-3a8b7973-c162-4cb5-abbc-d90a2738580b&amp;amp;user.name=nn/ip-100-122-218-159.us-east-1.ec2.aws.net@KERBTEST.COM&lt;/A&gt;, status: 403, message: GSSException: Failure unspecified at GSS-API level (Mechanism level: Invalid argument (400) - Cannot find key of appropriate type to decrypt AP REP - AES256 CTS mode with HMAC SHA1-96)&lt;/PRE&gt;&lt;P&gt;The keytab file details are as below&lt;/P&gt;&lt;PRE&gt;#klist -kte nn.service.keytab 
Keytab name: FILE:nn.service.keytab
KVNO Timestamp           Principal
---- ------------------- ------------------------------------------------------
   1 12/28/2017 07:02:18 nn/ip-***-***-***-**.us-east-1.ec2.aws.net@KERBTEST.COM (aes256-cts-hmac-sha1-96) 
   1 12/28/2017 07:02:18 nn/ip-***-***-***-**.us-east-1.ec2.aws.net@KERBTEST.COM (aes128-cts-hmac-sha1-96) 
   1 12/28/2017 07:02:18 nn/ip-***-***-***-**.us-east-1.ec2.aws.net@KERBTEST.COM (arcfour-hmac) 
   1 12/28/2017 07:02:18 nn/ip-***-***-***-**.us-east-1.ec2.aws.net@KERBTEST.COM (des3-cbc-sha1) 
   1 12/28/2017 07:02:18 nn/ip-***-***-***-**.us-east-1.ec2.aws.net@KERBTEST.COM (des-cbc-md5) 
# klist -kte spnego.service.keytab 
Keytab name: FILE:spnego.service.keytab
KVNO Timestamp           Principal
---- ------------------- ------------------------------------------------------
   1 12/28/2017 07:02:17 HTTP/ip-***-***-***-**.us-east-1.ec2.aws.net@KERBTEST.COM (aes256-cts-hmac-sha1-96) 
   1 12/28/2017 07:02:17 HTTP/ip-***-***-***-**.us-east-1.ec2.aws.net@KERBTEST.COM (aes128-cts-hmac-sha1-96) 
   1 12/28/2017 07:02:17 HTTP/ip-***-***-***-**.us-east-1.ec2.aws.net@KERBTEST.COM (arcfour-hmac) 
   1 12/28/2017 07:02:17 HTTP/ip-***-***-***-**.us-east-1.ec2.aws.net@KERBTEST.COM (des3-cbc-sha1) 
   1 12/28/2017 07:02:17 HTTP/ip-***-***-***-**.us-east-1.ec2.aws.net@KERBTEST.COM (des-cbc-md5) &lt;/PRE&gt;&lt;P&gt;HDP version : HDP-2.5.0.55&lt;/P&gt;</description>
      <pubDate>Thu, 28 Dec 2017 21:32:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-to-start-namenode-after-enabling-Kerberos/m-p/177696#M139944</guid>
      <dc:creator>umesh_kumbhar</dc:creator>
      <dc:date>2017-12-28T21:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to start namenode after enabling Kerberos</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-start-namenode-after-enabling-Kerberos/m-p/177697#M139945</link>
      <description>&lt;P&gt;One of a few issues may be in play.  First, make sure that the unlimited key JCE policy is installed.  Then make sure that the krb5.conf file or the KRB5CCNAME environment variable is not forcing the ticket cache to be stored in a KEYRING facility - the ticket cache needs to be stored in a file. Finally, ensure DNS and reverse DNS name resolution is configured properly.&lt;/P&gt;&lt;P&gt;Let me know if you need detailed explanations on any of those.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Dec 2017 00:19:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-to-start-namenode-after-enabling-Kerberos/m-p/177697#M139945</guid>
      <dc:creator>rlevas</dc:creator>
      <dc:date>2017-12-29T00:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to start namenode after enabling Kerberos</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-start-namenode-after-enabling-Kerberos/m-p/177698#M139946</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/322/rlevas.html" nodeid="322"&gt;@Robert Levas&lt;/A&gt;&lt;P&gt; Thanks for the reply. &lt;/P&gt;&lt;P&gt;JCE policy is installed correctly&lt;/P&gt;&lt;PRE&gt; $ java test_jce
 2147483647&lt;/PRE&gt;&lt;P&gt;Ticket cache is stored in file.&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;[libdefaults]
renew_lifetime = 7d
forwardable = true
default_realm = KERBTEST.COM
ticket_lifetime = 24h
dns_lookup_realm = false
dns_lookup_kdc = false
default_ccache_name = /tmp/krb5cc_%{uid}&lt;/PRE&gt;&lt;P&gt;DNS entries are also fine. Looked at journal node logs. The above error is thrown by journal node.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Dec 2017 17:25:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-to-start-namenode-after-enabling-Kerberos/m-p/177698#M139946</guid>
      <dc:creator>umesh_kumbhar</dc:creator>
      <dc:date>2017-12-29T17:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to start namenode after enabling Kerberos</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-start-namenode-after-enabling-Kerberos/m-p/177699#M139947</link>
      <description>&lt;P&gt;Issue got resolved. I copied the namenode  keytab file on journal node and restarted the JournalNode. After this started namenode. Looks like JournalNode was not able to decrypt data from namenode.  &lt;A rel="user" href="https://community.cloudera.com/users/322/rlevas.html" nodeid="322"&gt;@Robert Levas&lt;/A&gt; is this correct resolution?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Dec 2017 21:09:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-to-start-namenode-after-enabling-Kerberos/m-p/177699#M139947</guid>
      <dc:creator>umesh_kumbhar</dc:creator>
      <dc:date>2017-12-29T21:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to start namenode after enabling Kerberos</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-start-namenode-after-enabling-Kerberos/m-p/177700#M139948</link>
      <description>&lt;P&gt;You should not have had to manually copy anything, so I am confused as to what the issue was. &lt;/P&gt;</description>
      <pubDate>Mon, 01 Jan 2018 22:50:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-to-start-namenode-after-enabling-Kerberos/m-p/177700#M139948</guid>
      <dc:creator>rlevas</dc:creator>
      <dc:date>2018-01-01T22:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to start namenode after enabling Kerberos</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-start-namenode-after-enabling-Kerberos/m-p/177701#M139949</link>
      <description>&lt;P&gt;JournalNode throws below error when NameNode is trying to read the Journal during startup.&lt;/P&gt;&lt;PRE&gt;status: 403, message: GSSException: Failure unspecified at GSS-API level (Mechanism level: Invalid argument (400) - Cannot find key of appropriate type to decrypt AP REP - AES256 CTS mode with HMAC SHA1-96)&lt;/PRE&gt;&lt;P&gt;So I copied the NameNode keytab on journalNode and the error got resolved.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2018 11:29:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-to-start-namenode-after-enabling-Kerberos/m-p/177701#M139949</guid>
      <dc:creator>umesh_kumbhar</dc:creator>
      <dc:date>2018-01-02T11:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to start namenode after enabling Kerberos</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-start-namenode-after-enabling-Kerberos/m-p/177702#M139950</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/322/rlevas.html" nodeid="322"&gt;@Robert Levas&lt;/A&gt; can you confirm if the solution is valid, as I am facing same issue on other cluster as well, and not sure of workaround.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2018 03:06:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-to-start-namenode-after-enabling-Kerberos/m-p/177702#M139950</guid>
      <dc:creator>umesh_kumbhar</dc:creator>
      <dc:date>2018-01-10T03:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to start namenode after enabling Kerberos</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-start-namenode-after-enabling-Kerberos/m-p/177703#M139951</link>
      <description>&lt;P&gt;Your solution of copying keytab files around is not valid.  There must be some cause for the missing keytab file. &lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2018 03:24:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-to-start-namenode-after-enabling-Kerberos/m-p/177703#M139951</guid>
      <dc:creator>rlevas</dc:creator>
      <dc:date>2018-01-10T03:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to start namenode after enabling Kerberos</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-start-namenode-after-enabling-Kerberos/m-p/177704#M139952</link>
      <description>&lt;P&gt;Thanks &lt;A rel="user" href="https://community.cloudera.com/users/322/rlevas.html" nodeid="322"&gt;@Robert Levas&lt;/A&gt;. I later figured out that "spnego.service.keytab" requires 444 access on all Journal node. Once I changed the mode to 444, an restarting the journalnode, NameNode started working.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2018 17:54:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-to-start-namenode-after-enabling-Kerberos/m-p/177704#M139952</guid>
      <dc:creator>umesh_kumbhar</dc:creator>
      <dc:date>2018-01-11T17:54:25Z</dc:date>
    </item>
  </channel>
</rss>

