Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Ambari Fails to create Keytabs when Installing new services or when trying to regenerate keytabs of existing services

Solved Go to solution

Re: Ambari Fails to create Keytabs when Installing new services or when trying to regenerate keytabs of existing services

Interesting.... Actually I am not sure why `UNKNOWN:normal` is in there. Did you edit the encryption types in the configure Kerberos page, under Advanced kerberos-env? It should be `aes des3-cbc-sha1 rc4 des-cbc-md5`. Does your have a different value?

Re: Ambari Fails to create Keytabs when Installing new services or when trying to regenerate keytabs of existing services

Mentor

@huzaira bashir

Can you share your krb5 and kdc conf files for analysis?


Re: Ambari Fails to create Keytabs when Installing new services or when trying to regenerate keytabs of existing services

New Contributor
@Geoffrey Shelton Okot

Find attached the 2 files

Re: Ambari Fails to create Keytabs when Installing new services or when trying to regenerate keytabs of existing services

One thing to note is that Ambari appears to not be managing the krb5.conf file. This is fine, but Hadoop does not support the KEYRING cache type. You need to change

 default_ccache_name = KEYRING:persistent:%{uid}

to

default_ccache_name = /tmp/krb5cc_%{uid}
Highlighted

Re: Ambari Fails to create Keytabs when Installing new services or when trying to regenerate keytabs of existing services

Mentor

@huzaira bashir

There seems to be a mismatch between the Active Directory encryption type and the MIT encryption types can you align the 2 supported_enctypes to be the same.

Windows supports the below encryption types depending on the Windows version which are weak encryption

DES_CBC_CRC 
DES_CBC_MD5 
RC4_HMAC_MD5 
AES128_HMAC_SHA1 
AES256_HMAC_SHA1 

In your kdc.conf you have stronger encryption types you validate the AD encryption types? Else try to comment out the kdc.conf encryptions see below

# 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

and see whether the error persists?

Re: Ambari Fails to create Keytabs when Installing new services or when trying to regenerate keytabs of existing services

New Contributor

This is to the point! I got the same error when tried changing the default Ambari suggested enctypes to my custom ones. The custom ones work fine though with MIT KDC, but apparantly not with Ambari.

Re: Ambari Fails to create Keytabs when Installing new services or when trying to regenerate keytabs of existing services

New Contributor

@Geoffrey Shelton Okot So hashing out the the line in kdc.conf was not enough to make the errors go away, but when I changed the default config in Ambari to only 2 encryption types and hashed out the default ticket encryptions as well. the error went away. Thanks for all your help.