Created on 05-16-2017 09:12 AM - edited 09-16-2022 04:37 AM
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.
Created 05-16-2017 09:20 AM
- 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 : https://community.hortonworks.com/articles/42927/adding-kdc-administrator-credentials-to-the-ambari....
Created 05-16-2017 11:16 AM
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.
Created 05-16-2017 05:38 PM
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
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 !!
Created 06-06-2017 11:39 AM
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.