HBASE-8495 Change ownership of the directory to bulk load
This commit is contained in:
parent
8c43acfd45
commit
548d5061c9
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user