From 20874896623694070443ad06e69c302d169c1446 Mon Sep 17 00:00:00 2001 From: Matteo Bertozzi Date: Mon, 9 Jun 2014 22:30:19 +0100 Subject: [PATCH] HBASE-11311 Secure Bulk Load does not execute chmod 777 on the files --- .../hadoop/hbase/security/access/SecureBulkLoadEndpoint.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/security/access/SecureBulkLoadEndpoint.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/security/access/SecureBulkLoadEndpoint.java index 7f9fcc9fdde..07d5bf5cc08 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/security/access/SecureBulkLoadEndpoint.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/security/access/SecureBulkLoadEndpoint.java @@ -250,6 +250,10 @@ public class SecureBulkLoadEndpoint extends SecureBulkLoadService Configuration conf = env.getConfiguration(); fs = FileSystem.get(conf); for(Pair el: familyPaths) { + Path p = new Path(el.getSecond()); + LOG.trace("Setting permission for: " + p); + fs.setPermission(p, PERM_ALL_ACCESS); + Path stageFamily = new Path(bulkToken, Bytes.toString(el.getFirst())); if(!fs.exists(stageFamily)) { fs.mkdirs(stageFamily);