This topic describes how to manage E-MapReduce (EMR) user accounts on the Users page of the EMR console.

Prerequisites

  • An EMR cluster is created. For more information, see Create a cluster.
  • RAM users are created. For more information, see Create a RAM user.
    Note You must create a RAM user first. Only an EMR user account that has the same username as a RAM user can be added on the Users page of the EMR console.

Background information

Information about EMR user accounts is stored in the built-in OpenLDAP service of an EMR cluster and is used to authenticate EMR users in the EMR cluster.

If you click the link of an open source component on the Connect Strings page to access the web UI of the component, an EMR user account is required for identity authentication. The account is also required for identity authentication if LDAP authentication is enabled. If you configure LDAP as the user source for Ranger, you can control the permissions of user accounts listed on the Users page. EMR user accounts can be used to run kinit commands in a high-security cluster.

The Users page lists all EMR user accounts. RAM users that correspond to the EMR user accounts are classified into the following types based on the permissions granted to these RAM users in the EMR console:
  • Administrator: a RAM user with emr:ManageUserPlatform permissions, such as AliyunEMRFullAccess. Your Alibaba Cloud account is also an administrator. An administrator can view the information of all user accounts configured in a cluster. In addition, the administrator can perform the following operations on the user accounts: reset the password, remove a user account, modify remarks, and download authentication credentials. In addition, the administrator can add a user account. Authentication credentials can be downloaded only in a high-security cluster.
  • Common user: RAM users with other permissions, such as AliyunEMRDevelopAccess. A common user can only view the information of the EMR user account that has the same username as the common user and reset the password, modify remarks, and download authentication credentials of the user account. They are not allowed to add or remove a user account.

Limits

Only Hadoop clusters, Data Science clusters, and Druid clusters support user account management.

Add a user account

Notice If you use a RAM user to log on to the EMR console, you must grant the RAM user the ram:ListUsers permissions before you add a user account. You can grant the RAM user the AliyunRAMReadOnlyAccess permission on the RAM console by using your Alibaba Cloud account. Alternatively, you can customize permission policies and add ram:ListUsers permissions to the RAM user.
  1. Go to the Cluster Overview page.
    1. Log on to the Alibaba Cloud EMR console.
    2. In the top navigation bar, select the region where your cluster resides and select a resource group based on your business requirements.
    3. Click the Cluster Management tab.
    4. On the Cluster Management page, find your cluster and click Details in the Actions column.
  2. In the left-side navigation pane, click Users.
  3. On the Users page, click Add User in the upper-left corner.
  4. In the Add User dialog box, select an existing RAM user as an EMR user account from the Username drop-down list and specify Password and Confirm password.
  5. Click OK.

Remove a user account

  1. Go to the Cluster Overview page.
    1. Log on to the Alibaba Cloud EMR console.
    2. In the top navigation bar, select the region where your cluster resides and select a resource group based on your business requirements.
    3. Click the Cluster Management tab.
    4. On the Cluster Management page, find your cluster and click Details in the Actions column.
  2. In the left-side navigation pane, click Users.
  3. On the Users page, find the user account that you want to remove and click Delete in the Action column.
  4. In the Delete message, click OK.

Reset the password of a user account

You can reset the password of a user account.
Notice This operation may cause tasks that are running to fail.
  1. Go to the Cluster Overview page.
    1. Log on to the Alibaba Cloud EMR console.
    2. In the top navigation bar, select the region where your cluster resides and select a resource group based on your business requirements.
    3. Click the Cluster Management tab.
    4. On the Cluster Management page, find your cluster and click Details in the Actions column.
  2. In the left-side navigation pane, click Users.
  3. On the Users page, find the user account whose password you want to reset and click Reset Password in the Action column.
  4. In the Set Password dialog box, enter the new password in the Password and Confirm Password fields.
  5. Click OK.

Download authentication credentials

Note You can download the authentication credential file Keytab of a user account only from a high-security cluster.
  1. Go to the Cluster Overview page.
    1. Log on to the Alibaba Cloud EMR console.
    2. In the top navigation bar, select the region where your cluster resides and select a resource group based on your business requirements.
    3. Click the Cluster Management tab.
    4. On the Cluster Management page, find your cluster and click Details in the Actions column.
  2. In the left-side navigation pane, click Users.
  3. On the Users page, find the user account whose authentication credentials you want to download and click Download Authentication Credentials in the Action column.

Update user account configurations

On the Users page, click Update to update the user account configurations that fail to take effect in time due to network latency. You can also click Update to synchronize added OpenLDAP user accounts to the user account list on the Users page.

Manage Linux user accounts

This feature is used for high-security clusters with a self-managed LDAP server deployed. You can click Linux Users in the upper-right corner of the Users page to add a Linux user account.

When you add a Linux user account, a Linux user account with a specific name is automatically created for each node in the cluster. This account is also available on the nodes that are added when you scale out the cluster in the future.

FAQ

Q: Can different clusters share an EMR user account?

A: Different clusters cannot share an EMR user account. EMR user accounts listed on the Users page are valid only for the current cluster. For example, EMR user account A created in cluster-1 cannot be shared with cluster-2. To use EMR user account A in cluster-2, you must create this account in cluster-2.