[ https://issues.apache.org/jira/browse/HIVE-2504?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13397153#comment-13397153 ]
Raja Ahmed commented on HIVE-2504: ---------------------------------- Hi,I am new to Hadoop, Hive, and Linux. and i need some help. I am recieving an error in Hive which I think is permission related and I think this patch may help. But I dont know how to install this patch. Can someone help me with step by step directions on how to install this patch? The error message I get when I run the Hive test is: CREATE TABLE invites (foo INT, bar STRING) PARTITIONED BY (ds STRING); FAILED: Error in metadata: MetaException(message:Got exception: org.apache.hadoop.security.AccessControlException org.apache.hadoop.security.AccessControlException: Permission denied: user=myID, access=WRITE, inode="/user/hive/warehouse":hdfs:hadoop:drwxr-xr-x) Reading up on this patch seems like this may be the fix. If not then any assistance will be greatly appreciated. > 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-1.patch, HIVE-2504.patch, 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