For Secure Hadoop Environments, Specify the Keytab File Location for Data Access Nodes

Updated

On this page

For Kerberos authentication, a keytab file is used to authenticate to the key distribution center (KDC). Add the keytab file location as a property in the hdfs-site.xml configuration file on all data access nodes.

HDFS

The hdfs-site.xml file is located in the hadoop_installation_directory/conf/ directory.

Example

<property>

<name>hadoop.user.keytab.file</name>

<value>/etc/krb5.keytab</value>

</property>

where /etc/krb5.keytab is the keytab file location

HBase

For HBase, add the keytab file location as a property in the hbase-site.xml configuration file on all data access nodes. The hbase-site.xml file is located in hadoop_installation_directory/conf/.

Example

<property>

<name>hbase.client.keytab.file</name>

<value>/etc/krb5.keytab</value>

</property>

where /etc/krb5.keytab is the keytab file location