To use keyTab file for Kerberos authentication
i) Create a keyTab file in Hadoop installed machine using the steps mentioned below.
ii) Copy the created keyTab file to Applications Manager machine. (Preferably to this location: <AppManager_Home>/working/conf/KerberosConfigurations/KeyTabs/)
How to create keytab file?
Use the below command to create keytab file.
Format : ktpass -princ servicename/domainname@REALM-NAME.COM -mapuser accountname -pass accountpass -crypto AES256-SHA1 -ptype KRB5_NT_PRINCIPAL -out C:\Users\Administrator\Documents\hadoop-3.3.6\apm_kerberos_1.keytab
kinit -k -t C:\Users\administrator.APMKERBEROS\Documents\Hadoop-3.3.6\hadoop-3.3.6\apm_kerberos_1.keytab <SPN name of Hadoop>
For any issues while adding Kerberos Enabled Hadoop, check the below case.
Run the below command on the Hadoop installed machine by replacing the domain name and the Hadoop Server FQDN
setspn -T <Domain_Name> -F -Q hdfs/<Hadoop_Server_FQDN>*
<Domain_Name> is replaced with the domain name of your environment.
<Hadoop_Server_FQDN> is replaced with the FQDN of Hadoop running server.
Expected Output : This should list the SPN names.