forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Yang, Tong <yangtong2@huawei.com> Co-committed-by: Yang, Tong <yangtong2@huawei.com>
15 KiB
15 KiB
Adding a Ranger Access Permission Policy for Yarn
Scenario
The Ranger administrator can use Ranger to configure Yarn administrator permissions for Yarn users, allowing them to manage Yarn queue resources.
Prerequisites
- The Ranger service has been installed and is running properly.
- You have created users, user groups, or roles for which you want to configure permissions.
Procedure
- Log in to the Ranger management page.
- On the home page, click the component plug-in name in the YARN area, for example, Yarn.
- Click Add New Policy to add a Yarn permission control policy.
- Configure the parameters listed in the table below based on the service demands.
Table 2 Setting permissions Task
Role Authorization
Setting the Yarn administrator permission
Setting the permission for a user to submit tasks in a specified Yarn queue
- In Queue, specify a queue name.
- In the Allow Conditions area, select a user from the Select User drop-down list.
- Click Add Permissions and select submit-app.
Setting the permission for a user to manage tasks in a specified Yarn queue
- In Queue, specify a queue name.
- In the Allow Conditions area, select a user from the Select User drop-down list.
- Click Add Permissions and select admin-queue.
- (Optional) Add the validity period of the policy. Click Add Validity period in the upper right corner of the page, set Start Time and End Time, and select Time Zone. Click Save. To add multiple policy validity periods, click
. To delete a policy validity period, click
.
- Click Add to view the basic information about the policy in the policy list. After the policy takes effect, check whether the related permissions are normal.
To disable a policy, click
to edit the policy and set the policy to Disabled.

The permissions on Ranger Yarn are independent of each other. There is inclusion relationship among the permissions. Currently, the following permissions are supported:
- submit-app: permission to submit queue tasks
- admin-queue: permission to manage queue tasks
Although the admin-queue has the permission to submit tasks, it does not have the inclusion relationship with the submit-app permission.
Parent topic: Using Ranger (MRS 3.x)