Support Questions

Find answers, ask questions, and share your expertise
Announcements
Now Live: Explore expert insights and technical deep dives on the new Cloudera Community BlogsRead the Announcement

Error with Generate Missing Credentials CDP

avatar
Frequent Visitor

 

Cloudera Manager (Trial) 7.4.4

Cloudera Runtime 7.1.7 (Parcels)

 

vinod_artga_0-1659036333681.png

 

Cloudera SCM log:

 

2022-07-28 19:19:59,113 ERROR CommandPusher-1:com.cloudera.cmf.command.CommandHelpers: GenerateCredentials - Execution error:
java.io.IOException: Encountered error with /opt/cloudera/cm/bin/gen_credentials.sh: Cannot access generated keytab file /var/run/cloudera-scm-server/cmf2117942825672975512.keytab
at com.cloudera.cmf.security.GenerateCredentialsCommand.generateKeytab(GenerateCredentialsCommand.java:533)
at com.cloudera.cmf.security.GenerateCredentialsCommand.createKeytab(GenerateCredentialsCommand.java:637)
at com.cloudera.cmf.security.GenerateCredentialsCommand.generateMissingKeytabs(GenerateCredentialsCommand.java:350)
at com.cloudera.cmf.security.GenerateCredentialsCommand.access$300(GenerateCredentialsCommand.java:70)
at com.cloudera.cmf.security.GenerateCredentialsCommand$2$1.run(GenerateCredentialsCommand.java:745)
at com.cloudera.cmf.security.GenerateCredentialsCommand$2$1.run(GenerateCredentialsCommand.java:733)
at com.cloudera.cmf.security.components.SecurityUtils.runWithGenerateKrb5Conf(SecurityUtils.java:397)
at com.cloudera.cmf.security.GenerateCredentialsCommand$2.call(GenerateCredentialsCommand.java:733)
at com.cloudera.cmf.security.GenerateCredentialsCommand$2.call(GenerateCredentialsCommand.java:729)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
2022-07-28 19:19:59,113 ERROR CommandPusher-1:com.cloudera.cmf.model.DbCommand: Command 1546334450(GenerateCredentials) has completed. finalstate:FINISHED, success:false, msg:Encountered error with /opt/cloudera/cm/bin/gen_credentials.sh: Cannot access generated keytab file /var/run/cloudera-scm-server/cmf2117942825672975512.keytab
2022-07-28 19:19:59,113 INFO CommandPusher-1:com.cloudera.cmf.command.components.CommandStorage: Invoked delete temp files for command:DbCommand{id=1546334450, name=GenerateCredentials} at dir:/var/lib/cloudera-scm-server/temp/commands/1546334450

 

 

1 ACCEPTED SOLUTION

avatar
Master Collaborator

@vinod_artga

To resolve this issue, open /opt/cloudera/cm/bin/gen_credentials.sh for editing and add the following to the very end of the script:

exit ${PIPESTATUS[0]}

And then try generating Kerberos credentials once more. If it fails again, you should see much more detail assisting in troubleshooting.

This will be addressed in a future release of Cloudera Manager.

View solution in original post

1 REPLY 1

avatar
Master Collaborator

@vinod_artga

To resolve this issue, open /opt/cloudera/cm/bin/gen_credentials.sh for editing and add the following to the very end of the script:

exit ${PIPESTATUS[0]}

And then try generating Kerberos credentials once more. If it fails again, you should see much more detail assisting in troubleshooting.

This will be addressed in a future release of Cloudera Manager.