<?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: Why is kinit with a headless keytab failing? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Why-is-kinit-with-a-headless-keytab-failing/m-p/96247#M9708</link>
    <description>&lt;P&gt;You are using the wrong principal name for that keytab file. To see what keytab entries in that keytab file, use klist&lt;/P&gt;&lt;PRE&gt;klist -kte /etc/security/keytabs/hdfs.headless.keytab&lt;/PRE&gt;&lt;P&gt;This will list out the contents of the keytab file.  There will be 1 or more lines indicating details about each keytab entry. The 2nd-to-last column will show the principal name for each entry. The last column will show the encryption algorithm used to create the keytab entry.  &lt;/P&gt;</description>
    <pubDate>Fri, 30 Oct 2015 03:35:07 GMT</pubDate>
    <dc:creator>rlevas</dc:creator>
    <dc:date>2015-10-30T03:35:07Z</dc:date>
    <item>
      <title>Why is kinit with a headless keytab failing?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Why-is-kinit-with-a-headless-keytab-failing/m-p/96246#M9707</link>
      <description>&lt;P&gt;The commands being ran are below.  Both fail.&lt;/P&gt;&lt;PRE&gt;[root@host1 ~]# sudo -u hdfs /usr/bin/kinit -k -t /etc/security/keytabs/hdfs.headless.keytab hdfs/host1.prod.myclient.com@CORP.DS.MYCLIENT.COM
kinit: Keytab contains no suitable keys for hdfs/host1.prod.myclient.com@CORP.DS.MYCLIENT.COM while getting initial credentials &lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;and&lt;/STRONG&gt; &lt;/P&gt;&lt;PRE&gt;[user1@host2.prod /var/www/html]$ sudo -u hdfs /usr/bin/kinit -k -t /etc/security/keytabs/hdfs.headless.keytab
kinit: Client not found in Kerberos database while getting initial credentials&lt;/PRE&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:47:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Why-is-kinit-with-a-headless-keytab-failing/m-p/96246#M9707</guid>
      <dc:creator>TerryP</dc:creator>
      <dc:date>2022-09-16T09:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: Why is kinit with a headless keytab failing?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Why-is-kinit-with-a-headless-keytab-failing/m-p/96247#M9708</link>
      <description>&lt;P&gt;You are using the wrong principal name for that keytab file. To see what keytab entries in that keytab file, use klist&lt;/P&gt;&lt;PRE&gt;klist -kte /etc/security/keytabs/hdfs.headless.keytab&lt;/PRE&gt;&lt;P&gt;This will list out the contents of the keytab file.  There will be 1 or more lines indicating details about each keytab entry. The 2nd-to-last column will show the principal name for each entry. The last column will show the encryption algorithm used to create the keytab entry.  &lt;/P&gt;</description>
      <pubDate>Fri, 30 Oct 2015 03:35:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Why-is-kinit-with-a-headless-keytab-failing/m-p/96247#M9708</guid>
      <dc:creator>rlevas</dc:creator>
      <dc:date>2015-10-30T03:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: Why is kinit with a headless keytab failing?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Why-is-kinit-with-a-headless-keytab-failing/m-p/96248#M9709</link>
      <description>&lt;P&gt;Hi Terry,&lt;/P&gt;&lt;P&gt;in a secured cluster you have two types of keytabs or principals.&lt;/P&gt;&lt;P&gt;Headless and Service principals.&lt;/P&gt;&lt;P&gt;Headless principals are not bound to a specific host or node, they have the syntax: &amp;lt;service_name&amp;gt;-&amp;lt;clustername&amp;gt;@EXAMPLE.COM&lt;/P&gt;&lt;P&gt;Service princiapsl are bound to a specific service and host or node, they have the syntax: &amp;lt;service-name&amp;gt;/&amp;lt;hostname&amp;gt;@EXAMPLE.COM&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For Example:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;Headless: hdfs-mycluster@EXAMPLE.COM
Service: nn/c6601.ambari.apache.org@EXAMPLE.COM&lt;/PRE&gt;&lt;P&gt;Here is some more info &lt;A target="_blank" href="https://docs.oracle.com/cd/E21455_01/common/tutorials/kerberos_principal.html"&gt;https://docs.oracle.com/cd/E21455_01/common/tutorials/kerberos_principal.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Make sure you use the right principal when you use kinit, you can see the principals of a keytab with&lt;/P&gt;&lt;PRE&gt;klist -k &amp;lt;keytab file&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 30 Oct 2015 03:38:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Why-is-kinit-with-a-headless-keytab-failing/m-p/96248#M9709</guid>
      <dc:creator>jstraub</dc:creator>
      <dc:date>2015-10-30T03:38:09Z</dc:date>
    </item>
  </channel>
</rss>

