<?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: KDC Default Realm in krb5.conf in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/KDC-Default-Realm-in-krb5-conf/m-p/122632#M34384</link>
    <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/10804/milansladky.html" nodeid="10804"&gt;@Milan Sladky&lt;/A&gt;...  It is unclear whether this solves your problem or not. &lt;/P&gt;&lt;P&gt;So when &lt;/P&gt;&lt;PRE&gt;kinit host/hadoop-poc2-01.my.hadoop.domain.com&lt;/PRE&gt;&lt;P&gt;is invoked after my &lt;EM&gt;domain_realm&lt;/EM&gt; suggestion is apply, the assumed realm &lt;STRONG&gt;&lt;EM&gt;should be&lt;/EM&gt;&lt;/STRONG&gt; PROD.COM, not HADOOP.COM.   This is because no explicit realm or domain is indicated in the principal name... the "/hadoop-poc2-01.my.hadoop.domain.com" part of the principal name does not get used by the underlying libraries to determine the relevant host, domain, or realm.  Therefore, the default realm value is used. &lt;/P&gt;</description>
    <pubDate>Thu, 14 Jul 2016 02:54:36 GMT</pubDate>
    <dc:creator>rlevas</dc:creator>
    <dc:date>2016-07-14T02:54:36Z</dc:date>
    <item>
      <title>KDC Default Realm in krb5.conf</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/KDC-Default-Realm-in-krb5-conf/m-p/122629#M34381</link>
      <description>&lt;P&gt;We have several realms in our company and we plan to dedicate one to our Hadoop cluster managed by Ambari. Let's say we have:&lt;/P&gt;&lt;PRE&gt;PROD.COM #default realm to be used by production services
HADOOP.COM #dedicated for Hadoop cluster
&lt;/PRE&gt;&lt;P&gt; And it is mandatory for us to have PROD.COM as default realm in krb5.conf. However with PROD.COM as default realm I always get this error after successful kinit as hdfs:&lt;/P&gt;&lt;PRE&gt;[root@hadoop-poc2-01:/etc] kinit -kt /etc/security/keytabs/hdfs.headless.keytab hdfs-poc2@HADOOP.COM

[root@hadoop-poc2-01:/etc] hadoop fs -ls /
16/07/11 13:28:39 WARN security.UserGroupInformation: Not attempting to re-login since the last re-login was attempted less than 600 seconds before.
16/07/11 13:28:40 WARN ipc.Client: Couldn't setup connection for hdfs-poc2@HADOOP.COM to hadoop-poc2-01.int.na.prod.com/172.30.52.136:8020
javax.security.sasl.SaslException: GSS initiate failed [Caused by GSSException: No valid credentials provided (Mechanism level: Fail to create credential. (63) - No service creds)]&lt;/PRE&gt;&lt;P&gt;With default realm set to HADOOP.COM it just works.&lt;/P&gt;&lt;P&gt;Any hints? Thx&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2016 18:50:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/KDC-Default-Realm-in-krb5-conf/m-p/122629#M34381</guid>
      <dc:creator>milan_sladky</dc:creator>
      <dc:date>2016-07-11T18:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: KDC Default Realm in krb5.conf</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/KDC-Default-Realm-in-krb5-conf/m-p/122630#M34382</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10804/milansladky.html" nodeid="10804"&gt;@Milan Sladky&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you add a [domain_realm] section to your krb5.conf file, mapping the domain or DNS names of the hosts in the cluster to the HADOOP.COM realm, this should help:&lt;/P&gt;&lt;P&gt;Example using just the domain portion of the FQDNs of the hosts in the hadoop cluster&lt;/P&gt;&lt;PRE&gt;[domain_realm]
.my.hadoop.domain.com = HADOOP.COM
&lt;/PRE&gt;&lt;P&gt;Example using the explicit FQDNs of the hosts in the hadoop cluster&lt;/P&gt;&lt;PRE&gt;[domain_realm]
hadoop-poc2-01.my.hadoop.domain.com = HADOOP.COM
hadoop-poc2-02.my.hadoop.domain.com = HADOOP.COM
&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Jul 2016 21:18:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/KDC-Default-Realm-in-krb5-conf/m-p/122630#M34382</guid>
      <dc:creator>rlevas</dc:creator>
      <dc:date>2016-07-11T21:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: KDC Default Realm in krb5.conf</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/KDC-Default-Realm-in-krb5-conf/m-p/122631#M34383</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;, thanks for hint. This actually works!&lt;/P&gt;&lt;P&gt;But I was afraid that following kinit (used a lot internally):&lt;/P&gt;&lt;PRE&gt;[root@hadoop-poc2-01:/etc] kinit host/hadoop-poc2-01.my.hadoop.domain.com&lt;/PRE&gt;&lt;P&gt;will be towards HADOOP.COM realm; based on the domain_realm settings...&lt;/P&gt;&lt;P&gt;But it actually goes towards PROD.COM realm:&lt;/P&gt;&lt;PRE&gt;[root@hadoop-poc2-01:/etc] kinit host/hadoop-poc2-01.my.hadoop.domain.com
Password for host/hadoop-poc2-01.my.hadoop.domain.com@PROD.COM: &lt;/PRE&gt;&lt;P&gt;Which is good, but I do not understand why it works....&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2016 16:05:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/KDC-Default-Realm-in-krb5-conf/m-p/122631#M34383</guid>
      <dc:creator>milan_sladky</dc:creator>
      <dc:date>2016-07-12T16:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: KDC Default Realm in krb5.conf</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/KDC-Default-Realm-in-krb5-conf/m-p/122632#M34384</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/10804/milansladky.html" nodeid="10804"&gt;@Milan Sladky&lt;/A&gt;...  It is unclear whether this solves your problem or not. &lt;/P&gt;&lt;P&gt;So when &lt;/P&gt;&lt;PRE&gt;kinit host/hadoop-poc2-01.my.hadoop.domain.com&lt;/PRE&gt;&lt;P&gt;is invoked after my &lt;EM&gt;domain_realm&lt;/EM&gt; suggestion is apply, the assumed realm &lt;STRONG&gt;&lt;EM&gt;should be&lt;/EM&gt;&lt;/STRONG&gt; PROD.COM, not HADOOP.COM.   This is because no explicit realm or domain is indicated in the principal name... the "/hadoop-poc2-01.my.hadoop.domain.com" part of the principal name does not get used by the underlying libraries to determine the relevant host, domain, or realm.  Therefore, the default realm value is used. &lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2016 02:54:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/KDC-Default-Realm-in-krb5-conf/m-p/122632#M34384</guid>
      <dc:creator>rlevas</dc:creator>
      <dc:date>2016-07-14T02:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: KDC Default Realm in krb5.conf</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/KDC-Default-Realm-in-krb5-conf/m-p/122633#M34385</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;, that explains it just fine. Thx for all help, really appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2016 16:02:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/KDC-Default-Realm-in-krb5-conf/m-p/122633#M34385</guid>
      <dc:creator>milan_sladky</dc:creator>
      <dc:date>2016-07-14T16:02:23Z</dc:date>
    </item>
  </channel>
</rss>

