Help Center/
MapReduce Service/
Component Operation Guide (LTS)/
Using Hive/
Authorizing Over 32 Roles in Hive
Updated on 2023-04-28 GMT+08:00
Authorizing Over 32 Roles in Hive
Scenario
This function applies to Hive.
The number of OS user groups is limited, and the number of roles that can be created in Hive cannot exceed 32. After this function is enabled, more than 32 roles can be created in Hive.
![](https://support.huaweicloud.com/intl/en-us/cmpntguide-lts-mrs/public_sys-resources/note_3.0-en-us.png)
- After this function is enabled and the table or database is authorized, roles that have the same permission on the table or database will be combined using vertical bars (|). When the ACL permission is queried, the combined result is displayed, which is different from that before the function is enabled. This operation is irreversible. Determine whether to make adjustment based on the actual application scenario.
- If the current component uses Ranger for permission control, you need to configure related policies based on Ranger for permission management. For details, see Adding a Ranger Access Permission Policy for Hive.
- After this function is enabled, a maximum of 512 roles (including owner) are supported by default. The number is controlled by the user-defined parameter hive.supports.roles.max of MetaStore. You can change the value based on the actual application scenario.
Procedure
- Log in to FusionInsight Manager. For details, see Accessing FusionInsight Manager. Click Cluster, choose Services > Hive, click Configurations, and then All Configurations.
- Modify parameters and restart related instances:
- For versions earlier than MRS 3.2.0:
- Choose MetaStore(Role) > Customization, add a custom parameter to the hivemetastore-site.xml parameter file, and set Name to hive.supports.over.32.roles and Value to true.
- Choose HiveServer(Role) > Customization for versions earlier than MRS 3.2.0, add a custom parameter to the hive-site.xml parameter file, set Name to hive.supports.over.32.roles, and set Value to true.
- Click Save to save the configuration.
- Click Instance, select all Hive instances, and choose More > Restart Instance to restart all Hive instances.
- For MRS 3.2.0 or later:
- Choose MetaStore(Role) > Customization, add a custom parameter to the hivemetastore-site.xml parameter file, and set Name to hive.supports.over.32.roles and Value to true.
- Click Save to save the configuration.
- Click Instance, select all MetaStore instances, and choose More > Restart Instance to restart all MetaStore instances.
- For versions earlier than MRS 3.2.0:
Parent topic: Using Hive
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