Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Partitions created by Impala - default ACL a permissions

Partitions created by Impala - default ACL a permissions

Master Collaborator

Hi, 

  during insert overwrite partition Impala rewrites the entire directory and changes the default permissions and mask for the HDFS directory. The group right of the parent directory (table) is RWX and the partition directory is RWX. After the rewrite the permissions changes on the partition directory to R-X.

 

Is there any way to configure Impala to use:

1. pre-defined permissions (tell Impala to create always rwx rwx --- )

2. or to inherit the PARENT directory permissions?

 

Thanks

 

PS> The same insert in Hive honors the permissions of the parent,and copies the default rights and ACLs.

 

5 REPLIES 5

Re: Partitions created by Impala - default ACL a permissions

Cloudera Employee

I don't think (1) is possible but you can set "--insert_inherit_permissions=true" for (2). Can you give that a try?

Re: Partitions created by Impala - default ACL a permissions

Master Collaborator

Thanks for the hint, but I dont think it will work because I am doing insert overwrite partition and not insert into:

https://issues.cloudera.org/browse/IMPALA-3297

 

But I will try it today, and let you know,

T.

 

Re: Partitions created by Impala - default ACL a permissions

Cloudera Employee

Oh, I didn't know that. May be a bug like Skye mentioned in the other thread. Thanks for looking it up.

Re: Partitions created by Impala - default ACL a permissions

New Contributor

@Bharathv

How to set the parameter --insert_inherit_permissions if I am running it via impala-shell?

Re: Partitions created by Impala - default ACL a permissions

Master Collaborator

You set it via cloudera manager, Impala Daemon Command Line Argument Advanced Configuration Snippet (Safety Valve).

But it will not work if you issue insert overwrite.