<?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: Kerberos authentication error with keytab in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Kerberos-authentication-error-with-keytab/m-p/61875#M36662</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/24671"&gt;@rrodriguez&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Get the node has keytab. Ex: I am using the node which belongs to impala daemon.&lt;BR /&gt;2. Go to /var/run/cloudera-scm-agent/process and ls, it will list the process&lt;BR /&gt;3. cd xxxxxx-impala-IMPALAD .. ## Run ls cmd and make sure it has impala.keytab&lt;BR /&gt;4. klist -kt impala.keytab ## This will list all the available and valid principals&lt;BR /&gt;5. kinit -kt impala.keytab &amp;lt;copy paste the valid principal from the above step&amp;gt;&lt;BR /&gt;6. klist ## make sure kinit initiated&lt;/P&gt;</description>
    <pubDate>Wed, 15 Nov 2017 16:16:52 GMT</pubDate>
    <dc:creator>saranvisa</dc:creator>
    <dc:date>2017-11-15T16:16:52Z</dc:date>
    <item>
      <title>Kerberos authentication error with keytab</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Kerberos-authentication-error-with-keytab/m-p/61857#M36659</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've got a problem with the authentication of Kerberos using the Keytab, when I try to start any instance of HDFS service I keep getting the next error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;org.apache.hadoop.security.KerberosAuthException: Login failure for user: hdfs/&amp;lt;fqdn&amp;gt;@&amp;lt;REALM.COM&amp;gt; from keytab hdfs.keytab javax.security.auth.login.LoginException: Message stream modified (41)&lt;/PRE&gt;&lt;P&gt;I did not found any satisfactory answer for this problem, and the principals authenticates very well using that keytab file through&amp;nbsp;&lt;STRONG&gt;kinit&lt;/STRONG&gt; command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2017 08:02:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Kerberos-authentication-error-with-keytab/m-p/61857#M36659</guid>
      <dc:creator>rrodriguez</dc:creator>
      <dc:date>2017-11-15T08:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: Kerberos authentication error with keytab</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Kerberos-authentication-error-with-keytab/m-p/61868#M36660</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;check that the Domain name in your krb5.conf is in uppercase:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;default_realm = EXAMPLE.COM&lt;/P&gt;&lt;P&gt;EXAMPLE.COM = {&lt;BR /&gt;kdc = domaincontroller.example.com&lt;BR /&gt;admin_server = domaincontroller.example.com&lt;BR /&gt;default_domain = EXAMPLE.COM&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;.example.com = EXAMPLE.COM&lt;BR /&gt;example.com = EXAMPLE.COM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2017 13:40:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Kerberos-authentication-error-with-keytab/m-p/61868#M36660</guid>
      <dc:creator>ancistrus17</dc:creator>
      <dc:date>2017-11-15T13:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: Kerberos authentication error with keytab</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Kerberos-authentication-error-with-keytab/m-p/61869#M36661</link>
      <description>&lt;P&gt;Yes,&amp;nbsp;the realm name is in uppercase, the same as in the examples&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2017 13:42:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Kerberos-authentication-error-with-keytab/m-p/61869#M36661</guid>
      <dc:creator>rrodriguez</dc:creator>
      <dc:date>2017-11-15T13:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: Kerberos authentication error with keytab</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Kerberos-authentication-error-with-keytab/m-p/61875#M36662</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/24671"&gt;@rrodriguez&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Get the node has keytab. Ex: I am using the node which belongs to impala daemon.&lt;BR /&gt;2. Go to /var/run/cloudera-scm-agent/process and ls, it will list the process&lt;BR /&gt;3. cd xxxxxx-impala-IMPALAD .. ## Run ls cmd and make sure it has impala.keytab&lt;BR /&gt;4. klist -kt impala.keytab ## This will list all the available and valid principals&lt;BR /&gt;5. kinit -kt impala.keytab &amp;lt;copy paste the valid principal from the above step&amp;gt;&lt;BR /&gt;6. klist ## make sure kinit initiated&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2017 16:16:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Kerberos-authentication-error-with-keytab/m-p/61875#M36662</guid>
      <dc:creator>saranvisa</dc:creator>
      <dc:date>2017-11-15T16:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: Kerberos authentication error with keytab</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Kerberos-authentication-error-with-keytab/m-p/62300#M36663</link>
      <description>&lt;P&gt;Sorry for the late response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did that and it worked with kinit and an imported keytab&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 16:17:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Kerberos-authentication-error-with-keytab/m-p/62300#M36663</guid>
      <dc:creator>rrodriguez</dc:creator>
      <dc:date>2017-11-28T16:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: Kerberos authentication error with keytab</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Kerberos-authentication-error-with-keytab/m-p/62309#M36664</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/24671"&gt;@rrodriguez&lt;/a&gt;&amp;nbsp;happy to know that it worked!!&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 19:12:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Kerberos-authentication-error-with-keytab/m-p/62309#M36664</guid>
      <dc:creator>saranvisa</dc:creator>
      <dc:date>2017-11-28T19:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: Kerberos authentication error with keytab</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Kerberos-authentication-error-with-keytab/m-p/62333#M36665</link>
      <description>&lt;P&gt;Sorry, worked the kinit command, Cloudera keeps giving the first mentioned exception.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2017 07:15:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Kerberos-authentication-error-with-keytab/m-p/62333#M36665</guid>
      <dc:creator>rrodriguez</dc:creator>
      <dc:date>2017-11-29T07:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: Kerberos authentication error with keytab</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Kerberos-authentication-error-with-keytab/m-p/62349#M36666</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/24671"&gt;@rrodriguez&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it? my bad, i didn't get it... Did you get a chance to follow 'all' the steps that i've mentioned? if so, were you able to run all the steps successfully?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2017 15:12:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Kerberos-authentication-error-with-keytab/m-p/62349#M36666</guid>
      <dc:creator>saranvisa</dc:creator>
      <dc:date>2017-11-29T15:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: Kerberos authentication error with keytab</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Kerberos-authentication-error-with-keytab/m-p/62350#M36667</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/18441"&gt;@saranvisa&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes I've done all the steps in multiple ocasions, kinit command works fine with the keytabs imported but HDFS continues writing that error in logs.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2017 16:01:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Kerberos-authentication-error-with-keytab/m-p/62350#M36667</guid>
      <dc:creator>rrodriguez</dc:creator>
      <dc:date>2017-11-29T16:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: Kerberos authentication error with keytab</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Kerberos-authentication-error-with-keytab/m-p/62365#M36668</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/18441"&gt;@saranvisa&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tested it again after doing a regenerate keytabs and when doing the &lt;STRONG&gt;klist -kt&lt;/STRONG&gt; I got the next message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;# klist -kt hdfs.keytab
Keytab name: FILE:hdfs.keytab
klist: Unsupported key table format version number while starting keytab scan&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is not the same for other keytab files in other directories into&amp;nbsp;&lt;STRONG&gt;/var/run/cloudera-scm-agent/process&lt;/STRONG&gt; just for some of them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea of what's happening? Why some processes are getting empty keytab files? I don't understand.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the help&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2017 07:48:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Kerberos-authentication-error-with-keytab/m-p/62365#M36668</guid>
      <dc:creator>rrodriguez</dc:creator>
      <dc:date>2017-11-30T07:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: Kerberos authentication error with keytab</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Kerberos-authentication-error-with-keytab/m-p/62366#M36669</link>
      <description>&lt;P&gt;Hi again&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/18441"&gt;@saranvisa&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I checked the logs and I saw that the error that I was getting on starting a service was caused from a certain process so I got in that directory and looked for the error on hdfs.keytab. When doing the &lt;STRONG&gt;klist -kt hdfs.keytab&lt;/STRONG&gt; I got the principals list, tried to make a&amp;nbsp;&lt;STRONG&gt;kinit&lt;/STRONG&gt; with one of them and it worked well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I've seen is that the imported keytabs I was trying to&amp;nbsp;&lt;STRONG&gt;klist&lt;/STRONG&gt; were some old keytab files, modified few weeks ago, and the logs gave me the clue on which directory test the keytab files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So we are at the same point, seems that krb5-workstation commands work fine, keytabs were generated right and the service keeps outputing the same error again and again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some more ideas to test?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2017 08:08:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Kerberos-authentication-error-with-keytab/m-p/62366#M36669</guid>
      <dc:creator>rrodriguez</dc:creator>
      <dc:date>2017-11-30T08:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: Kerberos authentication error with keytab</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Kerberos-authentication-error-with-keytab/m-p/62736#M36670</link>
      <description>&lt;P&gt;We surpassed the error just configuring Cloudera to authenticate to a local KDC, we were using a KDC provided by WSO2, this problem got solved but not with the scenario it appeared first.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2017 12:00:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Kerberos-authentication-error-with-keytab/m-p/62736#M36670</guid>
      <dc:creator>rrodriguez</dc:creator>
      <dc:date>2017-12-13T12:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: Kerberos authentication error with keytab</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Kerberos-authentication-error-with-keytab/m-p/88675#M36671</link>
      <description>&lt;P&gt;Do you wanted to check the proper Authentication is Happenning between Cluster and AD, make sure port,&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2019 23:41:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Kerberos-authentication-error-with-keytab/m-p/88675#M36671</guid>
      <dc:creator>Zubair</dc:creator>
      <dc:date>2019-04-03T23:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: Kerberos authentication error with keytab</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Kerberos-authentication-error-with-keytab/m-p/304208#M221932</link>
      <description>&lt;P&gt;When you get below error message when doing kinit using a keytab file&lt;/P&gt;&lt;PRE&gt;klist: Unsupported key table format version number while starting keytab scan&lt;/PRE&gt;&lt;P&gt;Make sure that keytab file is not of zero byte&amp;nbsp;&lt;BR /&gt;e.g This is Zero byte keytab file and you will get the above error when trying to do kinit with it&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;-rw------- 1 cloudera-scm cloudera-scm 0 Aug 30 12:15 ./32-cloudera-mgmt-SERVICEMONITOR/cmon.keytab&lt;/LI-CODE&gt;&lt;P&gt;A good keytab file will have non-zero size e.g. &lt;STRONG&gt;778&lt;/STRONG&gt; for the below file&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;-rw------- 1 cloudera-scm cloudera-scm 778 Oct 12 05:21 ./150-cloudera-mgmt-SERVICEMONITOR/cmon.keytab&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Oct 2020 12:37:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Kerberos-authentication-error-with-keytab/m-p/304208#M221932</guid>
      <dc:creator>salimhussain</dc:creator>
      <dc:date>2020-10-12T12:37:29Z</dc:date>
    </item>
  </channel>
</rss>

