Skip to main content
davdop
Gold ⭐️
Jan 23, 2025 1:11 PM UTC
Solved

Generate missing credetials - KDC

Hello, 

Im currently setting new cluster.  When I try to start some role I get notifications that: 
Role is missing Kerberos keytab. Go to the Kerberos Credentials page and click the Generate Missing Credentials button.

So I try to Generate Missing credentials and I got:

 

failed script:/opt/cloudera/cm/bin/merge_credentials.sh due to:/opt/cloudera/cm/bin/merge_credentials.sh failed with exit code 1 and output of <<
+ export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/usr/kerberos/bin:/usr/kerberos/sbin:/usr/lib/mit/sbin:/usr/sbin:/usr/lib/mit/bin:/usr/bin
+ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/usr/kerberos/bin:/usr/kerberos/sbin:/usr/lib/mit/sbin:/usr/sbin:/usr/lib/mit/bin:/usr/bin
+ KEYTAB_OUT=/var/run/cloudera-scm-server/cmf-merged-out15742810764060677617.keytab
+ shift
+ ktutil
+ chmod 600 /var/run/cloudera-scm-server/cmf-merged-out15742810764060677617.keytab
chmod: cannot access '/var/run/cloudera-scm-server/cmf-merged-out15742810764060677617.keytab': No such file or directory

 

 What am I missing here ? 

 

davdop
davdopAnswer
Gold ⭐️
Jan 25, 2025 9:42 AM UTC

I found a solution for this trouble. I removed kerberos DB with kdb5-util destroy and I recreate it again kdb5-util create -s.

Other thing what I found was that, when I firstly created admin cloudera principal I used cloudera-scm instead of cloudera-scm/admin. I am not sure if this could caused problem, but after destroying old DB and created cloudera-scm/admin, generating is working properly. 

 

4 replies

DianaTorres
Community Manager
Community Manager
Jan 23, 2025 3:17 PM UTC

@davdop Welcome to the Cloudera Community!

To help you get the best possible solution, I have tagged our CDP experts @venkatsambath @abdulpasithali  who may be able to assist you further.

Please keep us updated on your post, and we hope you find a satisfactory solution to your query.

Translate
Regards, Diana Torres, Senior Community Moderator
shubham_sharma
Gold ⭐️⭐️⭐️
Gold ⭐️⭐️⭐️
Jan 24, 2025 6:57 PM UTC

Hi @davdop 

Could you please check if you are able to run kadmin remotely from your Cloudera Manager host and manage KDC ? It looks like a communication issue with KDC server

Translate
davdop
davdopAuthor
Gold ⭐️
Jan 25, 2025 9:08 AM UTC

Hello, @shubham_sharma 

you mean use kadmin without .local ? I have KDC installed on different host than CM. 

Translate
davdop
davdopAuthorAnswer
Gold ⭐️
Jan 25, 2025 9:42 AM UTC

I found a solution for this trouble. I removed kerberos DB with kdb5-util destroy and I recreate it again kdb5-util create -s.

Other thing what I found was that, when I firstly created admin cloudera principal I used cloudera-scm instead of cloudera-scm/admin. I am not sure if this could caused problem, but after destroying old DB and created cloudera-scm/admin, generating is working properly. 

 

Translate