Before you begin, get the Kerberos principal user name/password from the cluster administrator.
1. Log in to a Hadoop Cluster VM.
2. From the command line, type ktutil
to launch the utility.
3. Type the following command: where <user name> is the Kerberos principal user.
addent -password -p <user name> -k 1 -e RC4-HMAC4. When prompted, enter the password for the Kerberos principal user. 5. Type the following command to create a keytab: where /tmp/keytabs/ is the path where you want to save keytab file.
wkt /tmp/keytabs/<cuser name>.keytab