[ https://issues.apache.org/jira/browse/HIVE-2504?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13242787#comment-13242787 ]
Rohini Palaniswamy commented on HIVE-2504: ------------------------------------------ Had Thomas reopen the issue as I could not. Couple of issues with the fix: * The config that is actually being looked for is HIVE_FILES_UMASK_VALUE instead of hive.files.umask.value as the Enum name() function is used and not varname. short umaskVal = (short) conf.getInt(HiveConf.ConfVars.HIVE_FILES_UMASK_VALUE.name(), 0002); * Because of the new FsPermission(short mode) the value for the configuration has to be specified in decimal instead of a octal umask. Would be more happy if the fix did not resort to using this setting at all and instead applied the permissions of the parent directory. > 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