Enabling Kerberos in an ODP Cluster

Ubuntu

Package Installation

Bash
Copy

Firstly, you must install the Kerberos server package on the server machine.

During the installation, you have to provide the Kerberos realm and hostnames of your Kerberos servers.

You must also enter the name of the administrative Kerberos server.

Generate Password for Kerberos Realm

Generate a password for the Kerberos Realm by using the command below:

Bash
Copy

Configure kadm5.acl

Add the admin user principle to the access control by editing the following file:

Bash
Copy

Content in the data:

Bash
Copy

Add the admin principal to the Kerberos database using the command below:

Bash
Copy
Bash
Copy

Kerberos Client Installation

Install the Kerberos clients on the client machines using the command below:

Bash
Copy

Authenticate using our principal and see if it works.

Bash
Copy

Enable Kerberos on Ambari UI.

Modify Below Changes on the Ambari UI

Navigate Ambari UI → Kerberos → Advances kerberos-env → Encryption Types and change value from aes des3-cbc-sha1 rc4 des-cbc-md5 to aes

After making the edits, it should look as shown below:

RHEL

Package Installation

Bash
Copy

Configure kadm5.acl

After adding the principal, you must edit the acl for krb5kdc.

Bash
Copy

Enable Kerberos on Ambari UI

Modify Below Changes on the Ambari UI

Machines with OpenJDK8u392 onwards do not support certain encryption types. Navigate to Ambari UI → Kerberos → Advances kerberos-env → Encryption Types and change value from aes des3-cbc-sha1 rc4 des-cbc-md5 to aes

Enabling UI Access after Enabling Kerberos

After installing Kerberos, it is necessary to adjust the cluster configuration to access component UIs from the browser; otherwise, a 401 error will be encountered during browser access.

Change the following two configurations:

Bash
Copy

To access Kerberos Enabled UI (as SPNEGO authentication cannot be disabled in the 3.3.6.1-1 release), see Accessing a Kerberized UI Firefox.

Add an Admin Principal for RHEL 9 and Ubuntu 22.04

For RHEL 9 and Ubuntu 22.04, you must add an admin principal that includes the hostname of the KDC host.

Bash
Copy

If you fail to add it, the following error message appears.

tail -f krb5kdc.log
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
  Last updated