Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created on 10-29-2015 08:29 PM - edited 09-16-2022 02:47 AM
The commands being ran are below. Both fail.
[root@host1 ~]# sudo -u hdfs /usr/bin/kinit -k -t /etc/security/keytabs/hdfs.headless.keytab hdfs/[email protected] kinit: Keytab contains no suitable keys for hdfs/[email protected] while getting initial credentials
and
[[email protected] /var/www/html]$ sudo -u hdfs /usr/bin/kinit -k -t /etc/security/keytabs/hdfs.headless.keytab kinit: Client not found in Kerberos database while getting initial credentials
Created 10-29-2015 08:35 PM
You are using the wrong principal name for that keytab file. To see what keytab entries in that keytab file, use klist
klist -kte /etc/security/keytabs/hdfs.headless.keytab
This will list out the contents of the keytab file. There will be 1 or more lines indicating details about each keytab entry. The 2nd-to-last column will show the principal name for each entry. The last column will show the encryption algorithm used to create the keytab entry.
Created 10-29-2015 08:35 PM
You are using the wrong principal name for that keytab file. To see what keytab entries in that keytab file, use klist
klist -kte /etc/security/keytabs/hdfs.headless.keytab
This will list out the contents of the keytab file. There will be 1 or more lines indicating details about each keytab entry. The 2nd-to-last column will show the principal name for each entry. The last column will show the encryption algorithm used to create the keytab entry.
Created 10-29-2015 08:38 PM
Hi Terry,
in a secured cluster you have two types of keytabs or principals.
Headless and Service principals.
Headless principals are not bound to a specific host or node, they have the syntax: <service_name>-<clustername>@EXAMPLE.COM
Service princiapsl are bound to a specific service and host or node, they have the syntax: <service-name>/<hostname>@EXAMPLE.COM
For Example:
Headless: [email protected] Service: nn/[email protected]
Here is some more info https://docs.oracle.com/cd/E21455_01/common/tutorials/kerberos_principal.html
Make sure you use the right principal when you use kinit, you can see the principals of a keytab with
klist -k <keytab file>