Enabling Kerberos Authentication for Hadoop in Applications Manager

Enabling Kerberos Authentication for Hadoop in Applications Manager

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


Verify whether the generated keytab file is valid using the below command:

kinit -k -t C:\Users\administrator.APMKERBEROS\Documents\Hadoop-3.3.6\hadoop-3.3.6\apm_kerberos_1.keytab <SPN name of Hadoop>

Once keytab file is generated, add the file to the AppManagerHome/working/conf/KerberosConfigurations/KeyTabs location.

 

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.


                  New to ADSelfService Plus?