This topic describes how to manage E-MapReduce (EMR) user accounts 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. You can use the information 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, you must use an EMR user account for identity authentication. If you enable LDAP authentication, you must also use an EMR user account for identity authentication. If you configure LDAP as the user source for Ranger, you can manage the permissions of user accounts that are listed on the Users page. You can use EMR user accounts to run kinit commands on a high-security cluster.
- Administrator: an Alibaba Cloud account, or a RAM user that is granted the emr:ManageUserPlatform and emr:CreateLdapUser permissions, such as a RAM user to which the AliyunEMRFullAccess policy is attached. An administrator can view the information about all user accounts that are configured in a cluster. The administrator can also add or remove a user account, reset the password of a user account, modify the remarks of a user account, and download the authentication credentials of a user account. Authentication credentials can be downloaded only in a high-security cluster.
- Common user: RAM users to which other policies, such as AliyunEMRDevelopAccess, are attached. A common user can only view the information about the EMR user account whose username is the same as the username of the common user, reset the password, modify the remarks, and download the authentication credentials of the user account. A common user cannot add or remove a user account.
Prerequisites
An EMR cluster is created, and the OpenLDAP service is selected when you create the cluster. For more information, see Create a cluster.
A RAM user is created. For more information, see Create a RAM user.
Note You must create a RAM user first. Only an EMR user account whose username is the same as the username of a RAM user can be added to the Users page of the EMR console.
Add a user
Go to the Users tab.
Log on to the EMR console. In the left-side navigation pane, click EMR on ECS.
In the top navigation bar, select the region in which your cluster resides and select a resource group based on your business requirements.
On the EMR on ECS page, find the desired cluster and click the name of the cluster in the Cluster ID/Name column.
On the page that appears, click the Users tab.
On the Users tab, click Add User.
In the Add User dialog box, select an existing RAM user as an EMR user from the Username drop-down list and configure the Password and Confirm Password parameters.
Click OK.
Remove a user
On the Users tab, find the user that you want to remove and click Delete in the Actions column.
In the Delete User message, click OK.
Reset the password of a user
On the Users tab, find the user whose password you want to reset and click Reset Password in the Actions column.
In the Reset User Password dialog box, configure the Password and Confirm Password parameters.
Click OK.
Download the authentication credentials of a user
On the Users tab, find the user whose authentication credentials you want to download and click Download Authentication Credentials in the Actions column.