Create a Kerberos Principal and a keytab File for HiveServer2

Skip this task if you are not using Hive.

On each node where HiveServer 2 is installed, create a Kerberos Identity and keytab.

You can use the following commands in a Linux-based Kerberos environment to set up the identity and update the keytab file:
# kadmin
     : addprinc -randkey username/<FQDN@REALM>
     : ktadd -k /opt/mapr/conf/hive.keytab username/<FQDN@REALM>

The hive.keytab file must be owned and readable only by the mapr user.