Repository: hbase Updated Branches: refs/heads/0.94 c8c9249ba -> 9498adde2
HBASE-8495 Change ownership of the directory to bulk load Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/9498adde Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/9498adde Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/9498adde Branch: refs/heads/0.94 Commit: 9498adde2a190b46de2289e67ced4b2f73a8baeb Parents: c8c9249 Author: Matteo Bertozzi <[email protected]> Authored: Mon Jun 9 22:25:33 2014 +0100 Committer: Matteo Bertozzi <[email protected]> Committed: Mon Jun 9 22:25:33 2014 +0100 ---------------------------------------------------------------------- .../apache/hadoop/hbase/mapreduce/LoadIncrementalHFiles.java | 5 +++++ 1 file changed, 5 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/9498adde/src/main/java/org/apache/hadoop/hbase/mapreduce/LoadIncrementalHFiles.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/hadoop/hbase/mapreduce/LoadIncrementalHFiles.java b/src/main/java/org/apache/hadoop/hbase/mapreduce/LoadIncrementalHFiles.java index 5536a58..0f476d0 100644 --- a/src/main/java/org/apache/hadoop/hbase/mapreduce/LoadIncrementalHFiles.java +++ b/src/main/java/org/apache/hadoop/hbase/mapreduce/LoadIncrementalHFiles.java @@ -46,6 +46,7 @@ import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.conf.Configured; +import org.apache.hadoop.fs.permission.FsPermission; import org.apache.hadoop.fs.FileStatus; import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.FileUtil; @@ -430,6 +431,10 @@ public class LoadIncrementalHFiles extends Configured implements Tool { splitStoreFile(getConf(), hfilePath, familyDesc, splitKey, botOut, topOut); + FileSystem fs = tmpDir.getFileSystem(getConf()); + fs.setPermission(tmpDir, FsPermission.valueOf("-rwxrwxrwx")); + fs.setPermission(botOut, FsPermission.valueOf("-rwxrwxrwx")); + // Add these back at the *front* of the queue, so there's a lower // chance that the region will just split again before we get there. List<LoadQueueItem> lqis = new ArrayList<LoadQueueItem>(2);
