Enabling the Function of Creating a Foreign Table in a Directory That Can Only Be Read
Scenario
This function applies to Hive and Spark.
After this function is enabled, the user or user group that has the read and execute permissions on a directory can create foreign tables in the directory without checking whether the current user is the owner of the directory. In addition, the directory of a foreign table cannot be stored in the default directory \warehouse. In addition, do not change the permission of the directory during foreign table authorization.
After this function is enabled, the function of the foreign table changes greatly. Based on the actual application scenario, determine whether to enable this function.
Procedure
- Log in to FusionInsight Manager, click Cluster, choose Services > Hive, click Configurations, and then All Configurations.
- Choose HiveServer(Role) > Customization, add a customized parameter to the hive-site.xml parameter file, set Name to hive.restrict.create.grant.external.table, and set Value to true.
- Choose MetaStore(Role) > Customization, add a customized parameter to the hivemetastore-site.xml parameter file, set Name to hive.restrict.create.grant.external.table, and set Value to true. Restart all Hive instances after the modification.
- Determine whether to enable this function on the Spark client.
- If yes, download and install the Spark client again.
- If no, no further action is required.
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