Repository: hbase Updated Branches: refs/heads/master 8c43acfd4 -> 208748966
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/548d5061 Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/548d5061 Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/548d5061 Branch: refs/heads/master Commit: 548d5061c96f98eedf39f6fec77b53f88e088412 Parents: 8c43acf Author: Matteo Bertozzi <[email protected]> Authored: Mon Jun 9 22:27:50 2014 +0100 Committer: Matteo Bertozzi <[email protected]> Committed: Mon Jun 9 22:27:50 2014 +0100 ---------------------------------------------------------------------- .../apache/hadoop/hbase/mapreduce/LoadIncrementalHFiles.java | 5 +++++ 1 file changed, 5 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/548d5061/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/LoadIncrementalHFiles.java ---------------------------------------------------------------------- diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/LoadIncrementalHFiles.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/LoadIncrementalHFiles.java index aabac3f..6a6647c 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/LoadIncrementalHFiles.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/LoadIncrementalHFiles.java @@ -50,6 +50,7 @@ import org.apache.hadoop.classification.InterfaceAudience; import org.apache.hadoop.classification.InterfaceStability; 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; @@ -490,6 +491,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);
