Installing Kerberos
Before we get started with configuring Kerberos for Apache Hadoop, we need to set up the KDC and the different nodes on the cluster with the required packages.
Configuring the KDC Server
KDC is the Kerberos server and should be the first step in configuring Kerberos on the cluster. The following are the steps to install the server packages:
Choose a node on the cluster that you would want to set up as the KDC. Ideally, this node should be used exclusively for the KDC; however, for this demonstration, I am using
node1.hcluster
for the KDC.Install the
krb5-libs
,krb5-server
, andkrb5-workstation
packages on the KDC node. Use the following commands as theroot
user to install the packages:$ yum install krb5-libs $ yum install krb5-server $ yum install krb5-workstation
Update the
krb5.conf
file in the/etc/
folder from theroot
user as shown in the following code:[logging] default = FILE:/var/log/krb5libs.log kdc = FILE:/var/log/krb5kdc.log admin_server = FILE:/var/log/kadmind...