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

Jianguo Tian commented on HIVE-11995:
-------------------------------------

{code:java}
// first call FileUtils.mkdir to make sure that destf directory exists, if not, 
it creates
// destf with inherited permissions
boolean destfExist = FileUtils.mkdir(destFs, destf, true, conf);
{code}
 

Why did you set inheritPerms param to true in this line, it makes 
hive.warehouse.subdir.inherit.perms didn't work.

If the table hdfs dir permission is 770, and I want partition dir permission is 
755, so I need to set hive.warehouse.subdir.inherit.perms=false.

But it has been set to true in hard code way, so 
hive.warehouse.subdir.inherit.perms=false didn't work.

How do u think about this scenario. THX!

> Remove repetitively setting permissions in insert/load overwrite partition
> --------------------------------------------------------------------------
>
>                 Key: HIVE-11995
>                 URL: https://issues.apache.org/jira/browse/HIVE-11995
>             Project: Hive
>          Issue Type: Bug
>          Components: Security
>            Reporter: Chaoyu Tang
>            Assignee: Chaoyu Tang
>            Priority: Major
>             Fix For: 2.0.0
>
>         Attachments: HIVE-11995.patch
>
>
> When hive.warehouse.subdir.inherit.perms is set to true, insert/load 
> overwrite .. partition set table and partition permissions repetitively which 
> is not necessary and causing performance issue especially in the cases where 
> there are multiple levels of partitions involved.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to