During sql-standard-with-group Configuration, a Schema Fails to Be Created and the Error Message "Access Denied" Is Displayed
Issue
A schema fails to be created during sql-standard-with-group configuration and the error message "Access Denied" is displayed.
Symptom
The following error is reported:
CREATE SCHEMA hive.sf2 WITH (location = 'obs://obs-zy1234/sf2');Query 20200224_031203_00002_g6gzy failed: Access Denied: Cannot create schema sf2
Cause Analysis
Creating a schema in Presto requires the Hive administrator permission. The current user does not have the permission.
Procedure
MRS Manager:
- Method 1:
- Log in to MRS Manager and choose System > Manage User.
- Locate the row that contains the target user, and click Modify in the Operation column.
- Click Select and Add Role to assign the System_administrator permission to the user.
- Click OK.
- Method 2:
- Log in to MRS Manager and choose System > Manage Role.
- Click Create Role and set the following parameters:
- Enter a role name, for example, hive_admin.
- Set Permission to Hive and select Hive Admin Privilege.
- Click OK to save the role.
- Choose System > Manage User.
- Locate the row that contains the target user, and click Modify in the Operation column.
- Click Select and Add Role to add the newly created hive_admin permission to the user.
- Click OK.
FusionInsight Manager:
- Method 1:
- Log in to FusionInsight Manager and choose System > Permission > User.
- Locate the row that contains the target user, and click Modify in the Operation column.
- Click Add next to the role to assign the System_administrator permission to the user.
- Click OK.
- Method 2:
- Log in to FusionInsight Manager and choose System > Permission > Role.
- Click Create Role and set the following parameters:
- Enter a role name, for example, hive_admin.
- To configure resource permissions, select Hive and Hive Admin Permissions.
- Click OK to save the role.
- Choose System > Permission > User.
- Locate the row that contains the target user, and click Modify in the Operation column.
- Click Add next to the role to add the hive_admin permission for the user.
- 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