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:57:00 UTC

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

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

Zsolt Herczeg updated IMPALA-7649:
----------------------------------
    Description: 
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}
 

  was:
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}
 


> 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: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org