Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.8.0
-
None
-
None
-
None
Description
Found out there is an issue when drop external partition fails at the last step of move dir to trash, partition gets successfully dropped, but sentry acls still applied to the dir.
alter table 1008_tbl add partition (i=3) location '/data/test1/1008_par1'; alter table 1008_tbl drop partition (i=3); Error: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.SentryFilterDDLTask. Got exception: java.io.IOException Failed to move to trash: hdfs://nameservice1/data/test1/1008_par1 (state=08S01,code=1) show partitions 1008_tbl; (i=3 not shown) sudo -u hdfs hdfs dfs -getfacl -R /data/test1/1008_par1 # file: /data/test1/1008_par1 # owner: hive # group: hive user::rwx user:hive:rwx group:hbase:rwx (sentry applied extended acls) group::--- group:hive:rwx mask::rwx other::--x