This topic describes how to manage E-MapReduce (EMR) user accounts on the Users page of the EMR console.
Background information
EMR user information is stored in the cluster's built-in OpenLDAP service, primarily used for identity authentication within the cluster.
EMR users provide identity authentication when you access component web UIs or enable LDAP authentication for components. If you set Ranger's user source to LDAP, you can control permissions for these users. On a high-security cluster, EMR users can also run the kinit command.
EMR users are listed on the user management page. The RAM user permissions you use to log on to the EMR console determine the actions you can perform. RAM users fall into the following categories:
-
Administrator: An Alibaba Cloud account or a RAM user with the
emr:ManageUserPlatform(granted by a policy such asAliyunEMRFullAccess) andemr:CreateLdapUserpermissions. Administrators can view all users in the cluster, add or delete users, reset passwords, and modify user remarks. -
Common user: A RAM user with other policies, such as the
AliyunEMRDevelopAccesspolicy. Common users can only view the EMR user that shares their username. They can reset their own password and modify remarks, but cannot add or delete users.
Prerequisites
-
You have created a cluster that includes the OpenLDAP service. For more information, see Create a cluster.
-
You have created a RAM user. For more information, see Create a RAM user.
NoteYou 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
If you use a RAM user to log on to the EMR console, you must grant the ram:ListUsers permission to the RAM user before you add a user account. You can attach the AliyunRAMReadOnlyAccess policy to the RAM user in the RAM console by using your Alibaba Cloud account. You can also configure a custom policy to grant the ram:ListUsers permission to the RAM user.
-
Go to the User Management page.
Log on to the E-MapReduce console.
-
In the top navigation bar, select a region and resource group based on your requirements.
-
On the EMR on ECS page, click the name of the target cluster.
-
Click the Users tab.
-
On the Users page, click Add User.
-
In the Add User dialog box, select an existing RAM user from the Username drop-down list, and then enter a password in the Password and Confirm Password fields.
-
Click OK.
Delete a user
-
On the Users page, find the user to delete and click Delete in the Actions column.
-
In the Delete User dialog box, click OK.
Reset user password
You can reset the password of a user account.
This operation may cause tasks that are running to fail.
-
On the Users page, find the user and click Reset Password in the Actions column.
-
In the Reset User Password dialog box, enter the new password in the Password and Confirm Password fields.
-
Click OK.
Related documentation
If you created a high-security cluster, see Basic Kerberos usage for Kerberos configurations and basic operations such as exporting a keytab file.