Help Center/
MapReduce Service/
User Guide (Paris Region)/
Troubleshooting/
Using Presto/
During sql-standard-with-group Configuration, a Schema Fails to Be Created and the Error Message "Access Denied" Is Displayed
Updated on 2024-10-11 GMT+08:00
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
CREATE SCHEMA hive.sf2 WITH (location = 'obs://obs-zy1234/sf2');Query 20200224_031203_00002_g6gzy failed: Access Denied: Cannot create schema sf2
Cause Analysis
To create a schema in Presto, you must have the administrator permission of Hive.
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.
Parent topic: Using Presto
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.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot