Managing Flink Job Permissions
Scenarios
- You can isolate Flink jobs allocated to different users by setting permissions to ensure data query performance.
- The administrator and job creator have all permissions, which cannot be set or modified by other users.
Flink Job Permission Operations
- On the left of the DLI management console, choose Job Management > Flink Jobs.
- Select the job to be configured and choose More > Manage Permissions in the Operation column. The User Permission Info area displays the list of users who have permissions on the job.
You can assign queue permissions to new users, modify permissions for users who have some permissions of a queue, and revoke all permissions of a user on a queue.
- Assign permissions to a new user.
A new user does not have permissions on the job.
- Click Grant Permission on the right of User Permission Info page. The Grant Permission dialog box is displayed.
- Specify Username and select corresponding permissions.
- Click OK.
Table 1 describes the related parameters.
Table 1 Permission parameters Parameter
Description
Username
Name of the authorized user.
NOTE:The username is the name of an existing IAM user.
Select the permissions to be granted to the user
- View Job Details: This permission allows you to view the job details.
- Modify Job: This permission allows you to modify the job.
- Delete Job: This permission allows you to delete the job.
- Start Job: This permission allows you to start the job.
- Stop Job: This permission allows you to stop the job.
- Export Job: This permission allows you to export the job.
- Grant Permission: This permission allows you to grant job permissions to other users.
- Revoke Permission: This permission allows you to revoke the job permissions that other users have but cannot revoke the job creator's permissions.
- View Other User's Permissions: This permission allows you to view the job permissions of other users.
- To assign or revoke permissions of a user who has some permissions on the job, perform the following steps:
- In the list under User Permission Info for a job, select the user whose permissions need to be modified and click Set Permission in the Operation column.
- In the displayed Set Permission dialog box, modify the permissions of the current user. Table 1 lists the detailed permission descriptions.
If all options under Set Permission are gray, you are not allowed to change permissions on this job. You can apply to the administrator, job creator, or other authorized users for job permission granting and revoking.
- Click OK.
- To revoke all permissions of a user on a job, perform the following steps:
In the list under User Permission Info for a job, select the user whose permissions need to be revoked and click Revoke Permission in the Operation column. After you click OK in the Revoke Permission dialog box, the user does not have any permission on the job.
- Assign permissions to a new user.
Flink Job Permissions
- View Job Details
- Tenants and the admin user can view and operate all jobs.
- Sub-users and users with the read-only permission can view only their own jobs and the jobs to which the sub-user were granted all permissions.
- Start Job
- To use an exclusive queue, you must have the permission to submit and start jobs.
- To use a shared queue, you only need to have the permission to start jobs.
- Stop Job
- To use an exclusive queue, you must have the permission to stop jobs and queues.
- To use a shared queue, you only need to have the permission to stop jobs.
- Delete Job
- If a job can be deleted, you can delete the job if you were granted this permission.
- If a job cannot be deleted, the system stops the job before you delete it. For details about how to stop a job, see Stop Job. In addition, you must have the permission to delete the job.
- Create Job
- By default, sub-users cannot create jobs.
- To create a job, you must have this permission. Currently, only the admin user has the permission to create jobs. In addition, the user must have the permission of the related package group or package used by the job.
- Modify Job
When modifying a job, you need to have the permission to update the job and the permission to the package group or package used by the job belongs.
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