You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Matteo Bertozzi (JIRA)" <ji...@apache.org> on 2014/06/09 21:33:02 UTC
[jira] [Updated] (HBASE-11311) Secure Bulk Load does not execute
chmod 777 on the files
[ https://issues.apache.org/jira/browse/HBASE-11311?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matteo Bertozzi updated HBASE-11311:
------------------------------------
Attachment: HBASE-11311-v0.patch
ok, looks like that adding back the 3 lines is enough,
tested on a single cluster secure/unsecure (the dir to bulkload is on the same hdfs as /hbase)
and different clusters secure only (the dir to bulkload is on cluster1 and /hbase is on cluster2)
> Secure Bulk Load does not execute chmod 777 on the files
> --------------------------------------------------------
>
> Key: HBASE-11311
> URL: https://issues.apache.org/jira/browse/HBASE-11311
> Project: HBase
> Issue Type: Bug
> Components: security
> Affects Versions: 0.99.0, 0.98.2
> Reporter: Matteo Bertozzi
> Assignee: Matteo Bertozzi
> Fix For: 0.99.0, 0.98.4
>
> Attachments: HBASE-11311-v0.patch
>
>
> With HBASE-10902 we lost the setPermission() on the hfiles that we are moving, resulting in a Permission denied when we try to remove the file
> {code}
> Permission denied: user=hbase, access=WRITE, inode="/hbase/.../3de9fdb2a99e4ef9937b4622317d10e0_SeqId_2_":testuser:hadoop:-rwxr-xr-x
> {code}
> {code}
> for(Pair<byte[], String> el: familyPaths) {
> - Path p = new Path(el.getSecond());
> - LOG.trace("Setting permission for: " + p);
> - fs.setPermission(p, PERM_ALL_ACCESS);
> {code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)