The following table provides details about Hive ACL permissions required for performing operations on CarbonData tables.
Scenario |
Required Permission |
---|---|
DESCRIBE TABLE |
SELECT (of table) |
SELECT |
SELECT (of table) |
EXPLAIN |
SELECT (of table) |
CREATE TABLE |
CREATE (of database) |
CREATE TABLE As SELECT |
CREATE (on database), INSERT (on table), RW on data file, and SELECT (on table) |
LOAD |
INSERT (of table) RW on data file |
DROP TABLE |
OWNER (of table) |
DELETE SEGMENTS |
DELETE (of table) |
SHOW SEGMENTS |
SELECT (of table) |
CLEAN FILES |
DELETE (of table) |
INSERT OVERWRITE / INSERT INTO |
INSERT (of table) RW on data file and SELECT (of table) |
CREATE INDEX |
OWNER (of table) |
DROP INDEX |
OWNER (of table) |
SHOW INDEXES |
SELECT (of table) |
ALTER TABLE ADD COLUMN |
OWNER (of table) |
ALTER TABLE DROP COLUMN |
OWNER (of table) |
ALTER TABLE CHANGE DATATYPE |
OWNER (of table) |
ALTER TABLE RENAME |
OWNER (of table) |
ALTER TABLE COMPACTION |
INSERT (on table) |
FINISH STREAMING |
OWNER (of table) |
ALTER TABLE SET STREAMING PROPERTIES |
OWNER (of table) |
ALTER TABLE SET TABLE PROPERTIES |
OWNER (of table) |
UPDATE CARBON TABLE |
UPDATE (of table) |
DELETE RECORDS |
DELETE (of table) |
REFRESH TABLE |
OWNER (of main table) |
REGISTER INDEX TABLE |
OWNER (of table) |
SHOW PARTITIONS |
SELECT (on table) |
ALTER TABLE ADD PARTITION |
OWNER (of table) |
ALTER TABLE DROP PARTITION |
OWNER (of table) |
Configure the path for the following configuration items:
1) carbon.badRecords.location
2) Db_Path and other items during database creation