You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "Zsolt Herczeg (JIRA)" <ji...@apache.org> on 2018/10/02 10:55:00 UTC

[jira] [Created] (IMPALA-7649) Missing ACL on implicitly created partitions

Zsolt Herczeg created IMPALA-7649:
-------------------------------------

             Summary: 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


If a partition is created via alter table, Impala will apply the 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: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org