<?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: Cluster non operational after enabling Kerberos. in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Cluster-non-operational-after-enabling-Kerberos/m-p/183119#M145285</link>
    <description>&lt;P&gt;I also have &lt;/P&gt;&lt;PRE&gt; export HADOOP_ZKFC_OPTS="-Dzookeeper.sasl.client=true 
 -Dzookeeper.sasl.client.username=zookeeper 
 -Djava.security.auth.login.config=/usr/hdp/2.6.0.3-8/hadoop/conf/secure/hdfs_jaas.conf 
 -Dzookeeper.sasl.clientconfig=Client $HADOOP_ZKFC_OPTS"&lt;/PRE&gt;&lt;P&gt;hdfs_jaas.conf:&lt;/P&gt;&lt;PRE&gt;Client {
      com.sun.security.auth.module.Krb5LoginModule required
      useKeyTab=true
      storeKey=true
      useTicketCache=false
      keyTab="/etc/security/keytabs/nn.service.keytab"
      principal="nn/namenodehost1.local@MYREALM.FS";
};
&lt;/PRE&gt;</description>
    <pubDate>Tue, 08 May 2018 20:29:01 GMT</pubDate>
    <dc:creator>sadek_mostefai</dc:creator>
    <dc:date>2018-05-08T20:29:01Z</dc:date>
    <item>
      <title>Cluster non operational after enabling Kerberos.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Cluster-non-operational-after-enabling-Kerberos/m-p/183114#M145280</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I had enabled Kerberos on my cluster w/o realizing that the hostname was never included on /etc/hosts. I went and did that and also remove and re-add Kerberos. I still cannot get rid of this error:&lt;/P&gt;&lt;P&gt;nn/namenodehost1.local@MYREALM.FS for zookeeper/10.169.110.22@MYREALM.FS, Server not found in Kerberos database&lt;/P&gt;&lt;P&gt;As if the _HOST var doesn't get translated to the host's FQDN.&lt;/P&gt;&lt;P&gt;Any help is really appreciated.&lt;/P&gt;&lt;P&gt;Sadek&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 13:10:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Cluster-non-operational-after-enabling-Kerberos/m-p/183114#M145280</guid>
      <dc:creator>sadek_mostefai</dc:creator>
      <dc:date>2022-09-16T13:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: Cluster non operational after enabling Kerberos.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Cluster-non-operational-after-enabling-Kerberos/m-p/183115#M145281</link>
      <description>&lt;P&gt;I went ahead and re-built everything from scratch and still having the same issue. Any idea where ZKFC gets its ZK connection string besides ha.zookeeper.quorum ?&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2018 18:53:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Cluster-non-operational-after-enabling-Kerberos/m-p/183115#M145281</guid>
      <dc:creator>sadek_mostefai</dc:creator>
      <dc:date>2018-05-08T18:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: Cluster non operational after enabling Kerberos.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Cluster-non-operational-after-enabling-Kerberos/m-p/183116#M145282</link>
      <description>&lt;P&gt;&lt;EM&gt; &lt;A href="@Sadek M"&gt; @Sadek M&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;I would gladly help, but I would need you to share all the steps you executed and the below info.&lt;/EM&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;I&gt;HDP /Ambari versions&lt;/I&gt;&lt;/LI&gt;&lt;LI&gt;&lt;I&gt;Cluster OS&lt;/I&gt;&lt;/LI&gt;&lt;LI&gt;&lt;I&gt;/etc/hosts entry [Assuming they are identical]&lt;/I&gt;&lt;/LI&gt;&lt;LI&gt;&lt;I&gt;Number of nodes in Cluster&lt;/I&gt;&lt;/LI&gt;&lt;LI&gt;&lt;I&gt;KDC setup process&lt;/I&gt;&lt;/LI&gt;&lt;LI&gt;&lt;I&gt;Ambari Kerberos enabling errors.&lt;/I&gt;&lt;/LI&gt;&lt;LI&gt;&lt;I&gt;Output of&lt;/I&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;# kadmin.local           
listprincs&lt;/PRE&gt;&lt;UL&gt;&lt;LI&gt;&lt;I&gt;&lt;STRONG&gt;kadm5.acl&lt;/STRONG&gt;  usually in&lt;STRONG&gt; /var/kerberos/krb5kdc&lt;/STRONG&gt;&lt;/I&gt;&lt;/LI&gt;&lt;LI&gt;&lt;I&gt;&lt;STRONG&gt;krb5.conf&lt;/STRONG&gt; in &lt;STRONG&gt;/etc&lt;/STRONG&gt;&lt;BR /&gt;&lt;/I&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;EM&gt;Please obfuscate  any hostname or sensitive info before sharing &lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2018 19:42:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Cluster-non-operational-after-enabling-Kerberos/m-p/183116#M145282</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2018-05-08T19:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: Cluster non operational after enabling Kerberos.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Cluster-non-operational-after-enabling-Kerberos/m-p/183117#M145283</link>
      <description>&lt;UL&gt;
&lt;LI&gt;HDP-2.6.0.3/ Ambari Version 2.6.1.5 &lt;/LI&gt;&lt;LI&gt;Centos 7.4 (64bit)&lt;/LI&gt;&lt;LI&gt;/etc/hosts file only contains FQDN entry for its host. DNS is enabled (forward ONLY).&lt;/LI&gt;&lt;LI&gt;Cluster nodes: 3 zk + 2 NN (HA node) + Ranger (KMS) + 3 DN.&lt;/LI&gt;&lt;LI&gt;KDC setup was done following the steps at &lt;A href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.4/bk_security/content/install-kdc.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.4/bk_security/content/install-kdc.html&lt;/A&gt;. All principals have been created in KDC during Kerberos enabling process. They match what was in the Excel file I'd downloaded.&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;/var/kerberos/krb5kdc/kadm5.acl:
*/admin@MYREALM.FS    *
&lt;/PRE&gt;</description>
      <pubDate>Tue, 08 May 2018 20:19:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Cluster-non-operational-after-enabling-Kerberos/m-p/183117#M145283</guid>
      <dc:creator>sadek_mostefai</dc:creator>
      <dc:date>2018-05-08T20:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: Cluster non operational after enabling Kerberos.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Cluster-non-operational-after-enabling-Kerberos/m-p/183118#M145284</link>
      <description>&lt;PRE&gt;/etc/krb5.conf:


[libdefaults]
  renew_lifetime = 7d
  forwardable = true
  default_realm = MYREALM.FS
  ticket_lifetime = 24h
  dns_lookup_realm = false
  dns_lookup_kdc = false
  default_ccache_name = /tmp/krb5cc_%{uid}
  #default_tgs_enctypes = aes des3-cbc-sha1 rc4 des-cbc-md5
  #default_tkt_enctypes = aes des3-cbc-sha1 rc4 des-cbc-md5
 
[logging]
  default = FILE:/var/log/krb5kdc.log
  admin_server = FILE:/var/log/kadmind.log
  kdc = FILE:/var/log/krb5kdc.log
 
[realms]
  MYREALM.FS = {
    admin_server = mykdc.local
    kdc = mykdc.local
  }
&lt;/PRE&gt;&lt;P&gt;Looking at the hadoop-hdfs-zkfc log file, I am trying to figure out where zkfc gets its zk connection string from:&lt;/P&gt;&lt;P&gt;2018-05-07 16:12:49,965 INFO  zookeeper.ClientCnxn (ClientCnxn.java:logStartConnect(1019)) - Opening socket connection to server 10.169.110.22/10.169.110.22:2181. Will attempt to SASL-authenticate using Login Context section 'Client'.&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2018 20:23:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Cluster-non-operational-after-enabling-Kerberos/m-p/183118#M145284</guid>
      <dc:creator>sadek_mostefai</dc:creator>
      <dc:date>2018-05-08T20:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: Cluster non operational after enabling Kerberos.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Cluster-non-operational-after-enabling-Kerberos/m-p/183119#M145285</link>
      <description>&lt;P&gt;I also have &lt;/P&gt;&lt;PRE&gt; export HADOOP_ZKFC_OPTS="-Dzookeeper.sasl.client=true 
 -Dzookeeper.sasl.client.username=zookeeper 
 -Djava.security.auth.login.config=/usr/hdp/2.6.0.3-8/hadoop/conf/secure/hdfs_jaas.conf 
 -Dzookeeper.sasl.clientconfig=Client $HADOOP_ZKFC_OPTS"&lt;/PRE&gt;&lt;P&gt;hdfs_jaas.conf:&lt;/P&gt;&lt;PRE&gt;Client {
      com.sun.security.auth.module.Krb5LoginModule required
      useKeyTab=true
      storeKey=true
      useTicketCache=false
      keyTab="/etc/security/keytabs/nn.service.keytab"
      principal="nn/namenodehost1.local@MYREALM.FS";
};
&lt;/PRE&gt;</description>
      <pubDate>Tue, 08 May 2018 20:29:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Cluster-non-operational-after-enabling-Kerberos/m-p/183119#M145285</guid>
      <dc:creator>sadek_mostefai</dc:creator>
      <dc:date>2018-05-08T20:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: Cluster non operational after enabling Kerberos.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Cluster-non-operational-after-enabling-Kerberos/m-p/183120#M145286</link>
      <description>&lt;P&gt;&lt;EM&gt;&lt;A href="https://community.hortonworks.com/questions/189451/@Sadek%20M"&gt;@Sadek M&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;A properly functioning DNS server for your domain and functioning DNS resolvers on machines participating in your Kerberos realm is essential for the proper operation of your realm.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Kerberos can use DNS as a service location protocol, by using the DNS SRV record as defined in RFC 2052 or use a TXT record to locate the appropriate realm for a given host or domain name.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Are you using a MIT Kerberos? Can you update your krb5.conf on all the nodes by adding: &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;[libdefaults] 
    rdns = false &lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Your problem is a DNS issue, that's the reason I wanted the entries in /etc/hosts. A workaround if you cluster is small you could propagate the correct hosts' files, while you resolve the DNS issue.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Setting Up KDC Discovery Over DNS&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;To use KDC discovery over DNS, the following records should be placed in the&lt;STRONG&gt; zone file&lt;/STRONG&gt; corresponding to the Kerberos realm. In most cases, since the Kerberos realm name is simply an uppercase version of the DNS domain owned by the organization, these DNS entries are placed into the organization’s existing DNS zone file. &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Note, however, if the Kerberos realm and DNS domain differ, then a new zone must be created with the name of the Kerberos realm typical your network team should be able to help with the DNS zone update !&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Your zone file  example&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;_kerberos._udp.MYREALM.FS.     IN SRV 10 0 88  {your_kdc_server}.myrealm.fs.
_kerberos._tcp.MYREALM.FS.     IN SRV 10 0 88  {your_kdc_server}.myrealm.fs.
_kerberos-adm._tcp.MYREALM.FS. IN SRV 1  0 749 {your_kdc_server}.myrealm.fs.&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Hope that helps&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2018 20:51:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Cluster-non-operational-after-enabling-Kerberos/m-p/183120#M145286</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2018-05-08T20:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: Cluster non operational after enabling Kerberos.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Cluster-non-operational-after-enabling-Kerberos/m-p/183121#M145287</link>
      <description>&lt;P&gt;&lt;EM&gt;&lt;A href="https://community.hortonworks.com/questions/189451/@Sadek%20M"&gt;@Sadek M&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;I think you also forgot the entry [domain_realm] I have added it to your original krb5.conf,  please backup your current krb5.conf and just copy and paste the one below,&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;[libdefaults]
  renew_lifetime = 7d
  forwardable = true
  default_realm = MYREALM.FS
  ticket_lifetime = 24h
  dns_lookup_realm = false
  dns_lookup_kdc = false
  default_ccache_name = /tmp/krb5cc_%{uid}
  #default_tgs_enctypes = aes des3-cbc-sha1 rc4 des-cbc-md5
  #default_tkt_enctypes = aes des3-cbc-sha1 rc4 des-cbc-md5

[domain_realm]
  .myrealm.fs = MYREALM.FS
  myrealm.fs = MYREALM.FS

[logging]
  default = FILE:/var/log/krb5kdc.log
  admin_server = FILE:/var/log/kadmind.log
  kdc = FILE:/var/log/krb5kdc.log

[realms]
  MYREALM.FS = {
    admin_server = mykdc.local
    kdc = mykdc.local
  }&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Then  restart below Kerberos daemons&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;# service krb5kdc start 
# service kadmin restart&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt; Please let me know &lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 May 2018 04:39:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Cluster-non-operational-after-enabling-Kerberos/m-p/183121#M145287</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2018-05-09T04:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: Cluster non operational after enabling Kerberos.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Cluster-non-operational-after-enabling-Kerberos/m-p/183122#M145288</link>
      <description>&lt;P&gt;Adding all nodes in /etc/hosts across all of them fixed the problem. Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 09 May 2018 04:55:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Cluster-non-operational-after-enabling-Kerberos/m-p/183122#M145288</guid>
      <dc:creator>sadek_mostefai</dc:creator>
      <dc:date>2018-05-09T04:55:21Z</dc:date>
    </item>
  </channel>
</rss>

