accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From els...@apache.org
Subject [2/3] accumulo git commit: ACCUMULO-4071 Change ownership on bulk-import directory for Accumulo
Date Fri, 04 Dec 2015 19:52:04 GMT
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/master
Commit: afa475dc58175207af6af9cef83a382d07d81500
Parents: c20996d
Author: Josh Elser <elserj@apache.org>
Authored: Fri Dec 4 14:37:18 2015 -0500
Committer: Josh Elser <elserj@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());
 


Mime
View raw message