Repository: accumulo Updated Branches: refs/heads/1.7 c20996d83 -> afa475dc5 refs/heads/master 472bdd98b -> afd31edb7
ACCUMULO-4071 Change ownership on bulk-import directory for Accumulo When we run on a standalone (real) instance, we need to make sure that the test opens up the permissions so that Accumulo can read/write the files being imported. Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/afa475dc Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/afa475dc Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/afa475dc Branch: refs/heads/1.7 Commit: afa475dc58175207af6af9cef83a382d07d81500 Parents: c20996d Author: Josh Elser <els...@apache.org> Authored: Fri Dec 4 14:37:18 2015 -0500 Committer: Josh Elser <els...@apache.org> Committed: Fri Dec 4 14:37:18 2015 -0500 ---------------------------------------------------------------------- .../org/apache/accumulo/test/BulkImportSequentialRowsIT.java | 4 ++++ 1 file changed, 4 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/accumulo/blob/afa475dc/test/src/test/java/org/apache/accumulo/test/BulkImportSequentialRowsIT.java ---------------------------------------------------------------------- diff --git a/test/src/test/java/org/apache/accumulo/test/BulkImportSequentialRowsIT.java b/test/src/test/java/org/apache/accumulo/test/BulkImportSequentialRowsIT.java index 19e58de..2c04607 100644 --- a/test/src/test/java/org/apache/accumulo/test/BulkImportSequentialRowsIT.java +++ b/test/src/test/java/org/apache/accumulo/test/BulkImportSequentialRowsIT.java @@ -27,6 +27,7 @@ import org.apache.accumulo.harness.AccumuloClusterIT; import org.apache.accumulo.minicluster.impl.MiniAccumuloConfigImpl; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.FileSystem; +import org.apache.hadoop.fs.FsShell; import org.apache.hadoop.fs.Path; import org.apache.hadoop.fs.RawLocalFileSystem; import org.apache.hadoop.io.Text; @@ -87,6 +88,9 @@ public class BulkImportSequentialRowsIT extends AccumuloClusterIT { assertTrue("Expected that " + rfile + " exists, but it does not", fs.exists(rfile)); + FsShell fsShell = new FsShell(fs.getConf()); + assertEquals("Failed to chmod " + rootPath, 0, fsShell.run(new String[] {"-chmod", "-R", "777", rootPath.toString()})); + // Add some splits to.addSplits(tableName, getSplits());