Make sure you already have kdc server and also cloudera manager cluster.
Check on security on cloudera manager and Enable Kerberos.
Add information for kerberos server and its algorithm
Check “Manage krb5.conf through cloudera manager”, so kerberos will take control to create keytab files.
Insert user and password for kerberos admin
If you get this kind of error, you need to install kerberos client on all hosts.
install krb-libs and krb5-workstation
yum -y install krb5-libs krb5-workstation
set all in default and check for restart cluster after adding kerberos.
Just wait until process is done
You’ll find that Hue will have an error message. This error appear because Hue can access renewal kerberos ticket.
to fix that, go to kdc server and add this command
kadmin -p admin/admin@HADOOP
modprinc -maxrenewlife 90day krbtgt/HADOOP.COM@HADOOP.COM
modprinc -maxrenewlife 90day+allow_renewable hue/node01.hadoop.com@HADOOP.COM
after that, go to hue in cloudera manager and go to instance and check kerberos ticket renewer.
then choose regenerate keytab
after it’s done, just restart hue services and you’re done.