<?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 Checksum error in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Kerberos-Checksum-error/m-p/209236#M171192</link>
    <description>&lt;P&gt;&lt;EM&gt;@&lt;A href="https://community.hortonworks.com/users/47312/baigmujeeb.html"&gt;M B&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If you observe carefully, the encryption types in your krb5.conf have been commented out !!! The see the valid encryption types check your  kdc.conf see below&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;# cat /var/kerberos/krb5kdc/kdc&lt;/STRONG&gt;&lt;STRONG&gt;.conf&lt;/STRONG&gt; &lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;[kdcdefaults]
 kdc_ports = 88
 kdc_tcp_ports = 88
[realms]
 NANDOS.COM = {
  #master_key_type = aes256-cts
  acl_file = /var/kerberos/krb5kdc/kadm5.acl
  dict_file = /usr/share/dict/words
  admin_keytab = /var/kerberos/krb5kdc/kadm5.keytab
  supported_enctypes = aes256-cts:normal aes128-cts:normal des3-hmac-sha1:normal arcfour-hmac:normal camellia256-cts:normal camellia128-cts:normal des-hmac-sha1:normal des-cbc-md5:normal des-cbc-crc:normal
 }&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;From the output, this is your original master key because the KVNO is 1 &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;# kdb5_util list_mkeys
Master keys for Principal: K/M@NANDOS.COM
KVNO: 1, Enctype: aes256-cts-hmac-sha1-96, Active on: Thu Jan 01 01:00:00 CET 1970 * &lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Output looks correct &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;# kadmin.local
Authenticating as principal root/admin@NANDOS.COM with password.
kadmin.local:  getprinc hive/test.nandos.com@NANDOS.COM
Principal: hive/test.nandos.com@NANDOS.COM
Expiration date: [never]
Last password change: Thu Aug 24 15:42:17 CEST 2017
Password expiration date: [none]
Maximum ticket life: 1 day 00:00:00
Maximum renewable life: 0 days 00:00:00
Last modified: Thu Aug 24 15:42:17 CEST 2017 (root/admin@NANDOS.COM)
Last successful authentication: [never]
Last failed authentication: [never]
Failed password attempts: 0
Number of keys: 8
Key: vno 1, aes256-cts-hmac-sha1-96
Key: vno 1, aes128-cts-hmac-sha1-96
Key: vno 1, des3-cbc-sha1
Key: vno 1, arcfour-hmac
Key: vno 1, camellia256-cts-cmac
Key: vno 1, camellia128-cts-cmac
Key: vno 1, des-hmac-sha1
Key: vno 1, des-cbc-md5
MKey: vno 1
Attributes:
Policy: [none]
kadmin.local:&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Can you do the following as hive user,&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;$ kdestroy&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Check for the correct principal&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;$ klist  -kt  /etc/security/keytabs/hive.service.keytab&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Then using the correct principal run &lt;B&gt;kinit&lt;/B&gt;&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;$kinit -kt /etc/security/keytabs/hive.service.keytab  hive/hdata1.xxxx.local@xxxx.LOCAL&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Check the validity of the ticket &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;$klist &lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Try accessing &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;$ beeline&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Connect with the correct principal&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;!connect jdbc:hive2://localhost:10000/default;principal=hive/hdata1.xxxx.local@xxxx.LOCAL;auth=kerberos&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;That should work  please revert&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Nov 2017 06:43:56 GMT</pubDate>
    <dc:creator>Shelton</dc:creator>
    <dc:date>2017-11-27T06:43:56Z</dc:date>
  </channel>
</rss>

