Managing MRS Cluster Roles
The administrator can create and manage different roles in Manager and use them to authorize access to Manager and components based on various service scenarios.
The Manager of MRS 3.x and later versions supports a maximum of 5,000 roles (including system built-in roles but excluding roles automatically created by tenants).
The Manager of MRS 2.x and earlier versions supports a maximum of 1000 roles.
Creating a Role
For MRS 3.x and later versions:
- Log in to FusionInsight Manager, choose System > Permission > Role.
- On the displayed page, click Create Role and fill in Role Name and Description.
The role name consists of 3 to 50 characters, including digits, letters, and underscores (_). It cannot be the same as an existing role name in the system. The role name cannot start with Manager, System, or default. For example, the role name cannot be Manager_test.
Figure 1 Creating a role
- In the Configure Resource Permission area, click the cluster whose permissions are to be added and select service permissions for the role.
When setting permissions for a component, enter a resource name in the search text box in the upper right corner and click the search icon to view the search result.
The search result contains only directories, but not subdirectories. Search by keyword supports fuzzy match and is case-insensitive.
- For components (except HDFS and Yarn) for which Ranger authorization has been enabled, the permissions of non-default roles on Manager do not take effect. You need to configure Ranger policies to assign permissions to user groups.
- If the resource requests of HDFS and Yarn are beyond the Ranger policies, the ACL rules of the components still take effect.
- A maximum of 1000 permissions can be set for a component at a time.
- Click OK.
For MRS 2.x and earlier:
- On MRS Manager, choose .
- On the displayed page, click Create Role and fill in Role Name and Description.
Role Name is mandatory and contains 3 to 30 characters. Only digits, letters, and underscores (_) are allowed. Description is optional.
- In Permission, set role permission.
- Click Service Name and select a name in View Name.
- Select one or more permissions.
- The Permission parameter is optional.
- If you select View Name to set component permissions, you can enter a resource name in the Search box in the upper right corner and click . The search result is displayed.
- The search result contains only directories, but not subdirectories. Search by keyword supports fuzzy match and is case-insensitive. Results of the next page can be searched.
- Click OK. Return to Manage Role.
Managing Roles
- Log in to Manager.
- Go to the role management page.
- For MRS 3.x and later versions, choose .
- For MRS 2.x and earlier versions, choose System > Manage Role.
- In the role list, perform the following operations on the role as you need:
- To modify role information, locate the target role, and click Modify in the Operation column.
- To export role information, click Export All in TXT or CSV format.
Role information includes the role name and description.
Exporting role information is available in MRS 3.x or later only.
- To delete a role, locate the row that contains the role and click Delete. To delete multiple roles in batches, select the target roles and click Delete above the role list. A role bound to a user cannot be deleted. To delete such a role, disassociate the role from the user by modifying the user first.
Example: Creating a Manager Role (MRS 3.x and Later)
- Choose System > Permission > Role.
- On the displayed page, click Create Role and fill in Role Name and Description.
- In the Configure Resource Permission area, click Manager and set permissions for the role.
Figure 2 Setting permissions
Manager permissions:
- Cluster
- view permission: permission to view information on the Cluster page and view alarms and events under O&M > Alarm.
- management permission: permission for management on the Cluster and O&M pages.
- User
- view permission: permission to view information on pages under System > Permission.
- management permission: permission for management on pages under System > Permission.
- Audit
management permission: permission for management on the Audit page.
- Tenant
management permission: permission for management on the Tenant page and permission to view alarms and events under O&M > Alarm.
- System
management permission: permission for management on all pages except those under Permission on the System page and permission to view alarms and events under O&M > Alarm.
- Cluster
- Click OK.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot