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 "Balazs Jeszenszky (JIRA)" <ji...@apache.org> on 2018/10/02 14:32:00 UTC

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

    [ https://issues.apache.org/jira/browse/IMPALA-7649?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16635565#comment-16635565 ] 

Balazs Jeszenszky commented on IMPALA-7649:
-------------------------------------------

[~zherczeg] this is expected - from the doc (http://impala.apache.org/docs/build/html/topics/impala_insert.html):
bq. By default, if an INSERT statement creates any new subdirectories underneath a partitioned table, those subdirectories are assigned default HDFS permissions for the impala user. To make each subdirectory have the same permissions as its parent directory in HDFS, specify the --insert_inherit_permissions startup option for the impalad daemon.

> 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