[ 
https://issues.apache.org/jira/browse/IMPALA-7649?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tim Armstrong resolved IMPALA-7649.
-----------------------------------
    Resolution: Not A Bug

> Missing ACL on implicitly created partitions
> --------------------------------------------
>
>                 Key: IMPALA-7649
>                 URL: https://issues.apache.org/jira/browse/IMPALA-7649
>             Project: IMPALA
>          Issue Type: Bug
>            Reporter: Zsolt Herczeg
>            Priority: Minor
>
> If a partition is created via ALTER TABLE, Impala will apply an ACL 
> (group:hive:rwx) to the partition folder to ensure compatibility with 
> HiveServer2.
> In case a partition is created implicitly, during an INSERT query, this ACL 
> is not applied, causing interoperability issues.
> Steps to reproduce:
> {code:java}
> CREATE EXTERNAL TABLE test (a int) PARTITIONED BY (y int) STORED AS TEXTFILE 
> LOCATION '/user/admin/test/';
> ALTER TABLE test ADD PARTITION (y=1);
> INSERT INTO test (a) PARTITION (y=2) VALUES (2);{code}
> Resulting ACLs are:
> {code:java}
> hdfs dfs -getfacl /user/admin/test/
> # file: /user/admin/test
> # owner: impala
> # group: admin
> user::rwx
> group::rwx
> group:hive:rwx
> mask::rwx
> other::rwx
> hdfs dfs -getfacl /user/admin/test/y=1
> # file: /user/admin/test/y=1
> # owner: impala
> # group: admin
> user::rwx
> group::rwx
> group:hive:rwx
> mask::rwx
> other::rwx
> hdfs dfs -getfacl /user/admin/test/y=2
> # file: /user/admin/test/y=2
> # owner: impala
> # group: admin
> user::rwx
> group::r-x
> other::r-x{code}
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to