<?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 Kerberos configuration for cloudera hadoop cluster if domain name is changed in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Kerberos-configuration-for-cloudera-hadoop-cluster-if-domain/m-p/302722#M221224</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Would like some assistance/guidance on Kerberos. Our domain name has changed and since then our applications are unable to connect to Hadoop cluster. We are using MIT Kerberos.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Wert&lt;/P&gt;</description>
    <pubDate>Fri, 11 Sep 2020 16:52:10 GMT</pubDate>
    <dc:creator>wert_1311</dc:creator>
    <dc:date>2020-09-11T16:52:10Z</dc:date>
    <item>
      <title>Kerberos configuration for cloudera hadoop cluster if domain name is changed</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Kerberos-configuration-for-cloudera-hadoop-cluster-if-domain/m-p/302722#M221224</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Would like some assistance/guidance on Kerberos. Our domain name has changed and since then our applications are unable to connect to Hadoop cluster. We are using MIT Kerberos.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Wert&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2020 16:52:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Kerberos-configuration-for-cloudera-hadoop-cluster-if-domain/m-p/302722#M221224</guid>
      <dc:creator>wert_1311</dc:creator>
      <dc:date>2020-09-11T16:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: Kerberos configuration for cloudera hadoop cluster if domain name is changed</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Kerberos-configuration-for-cloudera-hadoop-cluster-if-domain/m-p/302752#M221230</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/29490"&gt;@wert_1311&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Domain name changes will affect the KDC database. Kerberos is super sensitive to domain changes according to experience you will have to recreate the KDC database and regenerate the keytabs/principals to enable you applications to reconnect.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT color="#FF6600"&gt;Cluster hostname&lt;/FONT&gt;&lt;BR /&gt;If the hosts in the cluster were re-named ie &lt;FONT color="#FF6600"&gt;host1.old.com&lt;/FONT&gt; to&amp;nbsp;&lt;FONT color="#FF6600"&gt;host1.new.com &lt;FONT color="#000000"&gt;then ensure those changes are also reflected or resolved by the DNS.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;This is going a tricky one but fortunately, CM or Ambari will make your work easy now that your domain has changed the earlier generated keytabs have the old domain name .&amp;nbsp;A keytab contains a pair of principals and an encrypted copy of that principal's key it's unique to each host since the principal names include the hostname and may be concatenated with the domain name&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;&lt;BR /&gt;Delete the old KDC database&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Usually, as the root user call the Kerberos database utility &lt;FONT color="#993300"&gt;kdb5_util destroy&lt;/FONT&gt; assuming the old domain was &lt;FONT color="#993300"&gt;OLD.COM&lt;/FONT&gt; this should delete the keytabs and principals linked to the old REALM,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# kdb5_util -r OLD.COM destroy&lt;/LI-CODE&gt;&lt;P&gt;You will need to manually delete the keytabs liked to the old REALM on the file system &lt;FONT color="#993300"&gt;/etc/security/keytabs/ [HDP]&lt;/FONT&gt; or &lt;FONT color="#993300"&gt;/etc/hadoop/conf/[CDH]&lt;/FONT&gt;. You will be prompted to confirm before destroying the database, usually, this is a better option if you have second thought rather than using the &lt;FONT color="#993300"&gt;kdb5_util destroy -f&lt;/FONT&gt; will naturally not prompt you for a confirmation&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF6600"&gt;Recreate the New KDC database&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Use the Kerberos database utility kdb5_util create [-s] assuming the new domain was NEW.COM&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# kdb5_util NEW.COM create
# kdb5_util -r NEW.COM create -s&lt;/LI-CODE&gt;&lt;P&gt;With the -s option, kdb5_util will stash a copy of the master key in a stash file this allows a KDC to authenticate itself to the database utilities, such as kadmin, kadmind, krb5kdc, and kdb5_util best option.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF6600"&gt;Update Kerberos files.&lt;/FONT&gt;&lt;BR /&gt;Make sure you update the below files to reflect the new REALM assuming your MIT KDC server's domain isn't changed.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;krb5.conf
kdc.conf
kadm5.acl 
Auth-to-local Rules
jaas.conf files [if being used by applications]&lt;/LI-CODE&gt;&lt;P&gt;&lt;FONT color="#FF6600"&gt;Enable Kerberos&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Using CM or Ambari the process is straight forward.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if you need more help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2020 23:22:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Kerberos-configuration-for-cloudera-hadoop-cluster-if-domain/m-p/302752#M221230</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2020-09-11T23:22:22Z</dc:date>
    </item>
  </channel>
</rss>

