hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mberto...@apache.org
Subject [1/2] git commit: HBASE-8495 Change ownership of the directory to bulk load
Date Mon, 09 Jun 2014 21:34:16 GMT
Repository: hbase
Updated Branches:
  refs/heads/0.98 2c800bd68 -> 04db3c376


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/4980a67e
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/4980a67e
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/4980a67e

Branch: refs/heads/0.98
Commit: 4980a67e672d767b9c6a15fda8aa08dd37c757c4
Parents: 2c800bd
Author: Matteo Bertozzi <matteo.bertozzi@cloudera.com>
Authored: Mon Jun 9 22:27:50 2014 +0100
Committer: Matteo Bertozzi <matteo.bertozzi@cloudera.com>
Committed: Mon Jun 9 22:28:27 2014 +0100

----------------------------------------------------------------------
 .../apache/hadoop/hbase/mapreduce/LoadIncrementalHFiles.java    | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/4980a67e/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 fc3d39b..e436493 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;
@@ -477,6 +478,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);


Mime
View raw message