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

Harsh J commented on HBASE-6422:
--------------------------------

HBASE-5498 should address this. Turns out we can't do a chown unless we're in 
the HDFS superuser group and/or are root in LFS.

Lets resolve this as a dupe of HBASE-5498.
                
> Add switch in LoadIncrementalHFiles API to allow for programatically changing 
> perms on output directory
> -------------------------------------------------------------------------------------------------------
>
>                 Key: HBASE-6422
>                 URL: https://issues.apache.org/jira/browse/HBASE-6422
>             Project: HBase
>          Issue Type: New Feature
>    Affects Versions: 0.94.0
>            Reporter: Jeff Lord
>
> Hbase bulk load often requires manual chown and permission changes.
> Usually it goes something like try to run completebulkload and it fails with 
> the following hdfs error:
> org.apache.hadoop.security.AccessControlException:
> org.apache.hadoop.security.AccessControlException:
> Permission denied:  user=hbase, access=WRITE, inode="mydata":
> hadoop:supergroup:rwxr-xr-x
> To work around this mismatch between Hadoop and HBase user permissions, you 
> can make both users share a group: that is, the user where you run the 
> MapReduce jobs and the user running HBase. Then, after running your MapReduce 
> job, you can chgrp the output directory to the HBase group, and run chmod 
> g+w. This allows the bulk loader to move the files into the HBase data 
> directory.
> It would be useful if there was a way to do this in the LoadIncrementalHFiles 
> API
> It is the case of linux permissions too:
> If we have:
> file owner:me group:me
> We can chown to group:x and owner:x, without needing special permissions
> chown x:x file
> Then when we trigger bulk load, HBase does the fs -mv, and finds that the 
> owner is itself, so no permission hitches. Goes smooth.
> We are thinking that a switch to turn this on/off (default off) would be nice 
> to have.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to