Support Questions

Find answers, ask questions, and share your expertise
Check out our newest addition to the community, the Cloudera Data Analytics (CDA) group hub.

Invalid KDC administrator credentials. Facing error while enabling kerberos


I am facing mentioned error while trying to enable kerberos in Ubuntu setup.

Invalid KDC administrator credentials. Please enter admin principal and password.

Although i have known admin credentials still it is giving me error.

any kind of help is appreciated.


@Jay SenSharma


Super Mentor

@hardik desai

- Are you entering "ambari admin" credentials in a place where you are supposed to enter the "kadmin" credentials?

- Can you please share the screenshot of the error that you are getting so that we will know exactly when you are getting this error message.

- Ambari also allows us to permanently store the "kadmin" credentials as described in the following article, so that you do not need to enter the kadmin credentials :


Jay SenSharma thanks for the respond...

kindly find the atatched file for reference.error-kerb.png

Here i have tried entering kadmin credentials , which i have also stored as per the article given by you.

still it is giving the same error and not taking the kadmin credentials even though it is properly checked.

plz help if possible.


@Jay SenSharma

The login should be admin/root@REALM or admin/admin@REALM and the password you used when creating the KDC database.

The exact value should be in your


an example above form my centOS the location could be different in Ubuntu

*/admin@TEST.COM      *

So with the above value my login would be either

admin/admin@TEST.COM  or root/admin@TEST.COM or whatever you chose in the begining

The password you entered during the creation of the database see below extract is the one you use in the above scenario

# kdb5_util create -s
Loading random data
Initializing database '/var/kerberos/krb5kdc/principal' for realm 'TEST.COM',
master key name 'K/M@TEST.COM'
You will be prompted for the database Master Password.
It is important that you NOT FORGET this password.
Enter KDC database master key:
Re-enter KDC database master key to verify:

Or whatever you chose I hope you keep the password safely !!

I did face the same problem in HDP 2.3 cluster with open JDK 1.6

I tried the above solution but it didn't work for me.

I then decided to try with HDP 2.4 with open JDK 1.7, Now kerberos setup is successful.

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.