- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
kadmin: Cannot read password while initializing kadmin interface
- Labels:
-
Apache Ambari
-
Kerberos
Created on ‎03-27-2017 08:59 AM - edited ‎09-16-2022 04:20 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
from ambari-web "Admin->Kerberos->", when i click "Regenerate Keytabs" an error occured
One error is "/var/log/kadmin.log: don't have permission
Another is "kadmin:Can't read password while initalizing kadmin interface"
Created ‎03-27-2017 09:21 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
1. Are you sure if ambari is running as root?
2. Can you please list the permission of file.
# ls -lart /var/log/kadmind.log
3. From ambari host the KDC is reachable or not?
# telnet kdcHostName kdcPort # telnet erie1.example.com 88
.
Created on ‎03-27-2017 10:03 AM - edited ‎08-18-2019 03:17 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
1. ambari is running as ambari
i think the reason is
"STDERR: kadmin: Cannot read password while initializing kadmin interface"
but when i run kadmin at another host(not kdc server) , i can connect the kdc server like this(input kadmin password) . they are all same with kdc's.
maybe the ambari-server read password from error config ??
Created ‎03-27-2017 02:46 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have seen this a few times, but assume it was related to load on the Ambari server host... maybe something related to open files or pipes.
Does this issue happen every time you attempt to Regenerate Keytab files?
What version of Ambari are you running? A retry loop was added in Ambari 2.5 to help things like this. So when that comes out, you should upgrade to that to see if it helps your issue.
Created ‎03-28-2017 12:37 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yes, it happened every time when click 'Regenreate Keytab'.
the Ambari version is 2.4.2.0-136
Created ‎03-28-2017 03:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks @Jay SenSharma @Robert Levas ,i find the reason
when click Regenerate Keytab, a web page pop, Principle and password needed . but some time it pop up,some time nothing。i will find why .
Created ‎03-28-2017 03:17 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can avoid Ambari UI to ask password for kadmin. You can store that kadmin credential to ambari store.
curl -H "X-Requested-By:ambari" -u admin:admin -X PUT -d '{ "Credential" : { "principal" : "admin/admin@EXAMPLE.COM", "key" : "pwd$hwx", "type" : "persisted" } }' http://ambari.example.com:8080/api/v1/clusters/c1/credentials/kdc.admin.credential
.
Above will require a keystore setup and then "[2] Encrypt passwords stored in ambari.properties file." on ambari-server setup-security wizard. Using this way you can avoid entering the kadmin credentials everytime on ambari.
