If a user needs to access HetuEngine tables or databases created by other users, the user needs to be granted with related permissions. HetuEngine supports permission control based on columns for strict permission control. If a user needs to access some columns in tables created by other users, the user must be granted the permission for columns. The following describes how to grant table, column, and database permissions to users by using the role management function of Manager.
The operations for granting permissions on HetuEngine tables, columns, and databases are the same as those for Hive.
Table 1 describes the permission requirements when SQL statements are processed in HetuEngine.
Scenario |
Required Permission |
---|---|
DESCRIBE TABLE |
Select |
ANALYZE TABLE |
Select and Insert |
SHOW COLUMNS |
Select |
SHOW TABLE STATUS |
Select |
SHOW TABLE PROPERTIES |
Select |
SELECT |
Select NOTE:
To perform the SELECT operation on a view, you must have the Select permission on the view and the tables corresponding to the view. |
EXPLAIN |
Select |
CREATE VIEW |
Select, Grant Of Select, and Create |
CREATE TABLE |
Create |
ALTER TABLE ADD PARTITION |
Insert |
INSERT |
Insert |
INSERT OVERWRITE |
Insert and Delete |
ALTER TABLE DROP PARTITION |
The table-level Alter and Delete, and column-level Select permissions need to be granted. |
ALTER DATABASE |
Hive Admin Privilege |