You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Rohini Palaniswamy (Commented) (JIRA)" <ji...@apache.org> on 2012/03/24 03:47:27 UTC

[jira] [Commented] (HIVE-2504) Warehouse table subdirectories should inherit the group permissions of the warehouse parent directory

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

Rohini Palaniswamy commented on HIVE-2504:
------------------------------------------

     This fix makes the table directory always have permission of 775 and does not actually inherit the group permissions of the parent directory. In most of our cases, the owner produces the data while the group permissions are meant for users reading the data. Now hive.files.umask.value always need to be set to ensure the users belonging to the group cannot write or modify the table. Can't we change the fix to set the same permissions as the parent directory and get rid of this configuration? 
       Also it is always prudent to do fs.mkdirs() and then fs.setPermission() as setting the umask in configuration is not guaranteed to work. The DistributedFileSystem is cached and it refers to the Configuration that it was first initialized with. 
                
> Warehouse table subdirectories should inherit the group permissions of the warehouse parent directory
> -----------------------------------------------------------------------------------------------------
>
>                 Key: HIVE-2504
>                 URL: https://issues.apache.org/jira/browse/HIVE-2504
>             Project: Hive
>          Issue Type: Bug
>          Components: Metastore
>            Reporter: Carl Steinbach
>            Assignee: Chinna Rao Lalam
>             Fix For: 0.9.0
>
>         Attachments: HIVE-2504.patch
>
>
> When the Hive Metastore creates a subdirectory in the Hive warehouse for
> a new table it does so with the default HDFS permissions. Since the default
> dfs.umask value is 022, this means that the new subdirectory will not inherit the
> group write permissions of the hive warehouse directory.
> We should make the umask used by Warehouse.mkdirs() configurable, and set
> it to use a default value of 002.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira