Control-M for Hadoop Kerberos Configuration
The following procedures describe how to configure Control-M for Hadoop to work in a secure Hadoop environment (Kerberos):
- Configuring Control-M Agent to Work with Kerberos
- Configuring User Impersonation in the Connection Profile
- Configuring User Impersonation for Oozie
Configuring Control-M Agent to Work with Kerberos
This procedure describes how to configure an Agent to work with Kerberos.
Begin
-
Create a Kerberos Principal for the Agent and a valid Keytab file.
-
From the icon, select Configuration.
-
From the drop-down list, select Plug-ins.
-
Select the required Hadoop plug-in and then click Configuration.
-
Add the Principal and Keytab file you created, as described in Configuring Control-M for Hadoop Parameters.
Configuring User Impersonation in the Connection Profile
This procedure describes how to configure user impersonation in the connection profile when running Control-M for Hadoop jobs. Control-M for Hadoop uses the ksu utility to impersonate a user.
Begin
-
Create a .k5login file in the home directory of the impersonated user. The file should include the Control-M Agent's Principal, which is set in Configuration, as described in Configuring Control-M for Hadoop Parameters.
-
Create a principal and valid keytab file for the impersonated user. This file should be accessible for the Agent user.
-
From the icon, select Configuration.
-
From the drop-down list, select Centralized Connection Profiles.
-
Select an existing Hadoop profile, and then click the profile to edit it.
Alternatively you can add a new Hadoop profile by selecting Hadoop from the Add Connection Profile drop-down list.
-
From the Connection Profile dialog box, type the principal and the keytab that you created, as described in Hadoop Connection Profile Parameters.
-
To configure the Agent as a proxy user, add the following properties to the Hadoop configuration file (core-site.xml):
<property>
<name>hadoop.proxyuser.<Control-M Agent user name>.hosts</name>
<value>*</value>
</property>
<property>
<name>hadoop.proxyuser.<Control-M Agent user name>.groups</name> <value>*</value>
</property>
- Restart the cluster.
Configuring User Impersonation for Oozie
This procedure describes how to configure user impersonation for Oozie jobs in Control-M for Hadoop.
Control-M for Hadoop does not support user impersonation for Oozie jobs, when the Agent is running as root on kerberized cluster.
Begin
-
Add the following properties to Oozie configuration file (oozie-site.xml):
Copy<property>
<name>oozie.service.ProxyUserService.proxyuser.<Control-M Agent user name>.hosts</name>
<value>*</value>
</property>
<property>
<name>oozie.service.ProxyUserService.proxyuser.<Control-M Agent user name>.groups</name>
<value>*</value>
</property> - Restart the Oozie-Server.