You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by st...@apache.org on 2012/04/05 22:20:55 UTC

svn commit: r1310050 - /hbase/trunk/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java

Author: stack
Date: Thu Apr  5 20:20:55 2012
New Revision: 1310050

URL: http://svn.apache.org/viewvc?rev=1310050&view=rev
Log:
HBASE-5711 Tests are failing with incorrect data directory permissions.

Modified:
    hbase/trunk/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java

Modified: hbase/trunk/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java
URL: http://svn.apache.org/viewvc/hbase/trunk/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java?rev=1310050&r1=1310049&r2=1310050&view=diff
==============================================================================
--- hbase/trunk/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java (original)
+++ hbase/trunk/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java Thu Apr  5 20:20:55 2012
@@ -432,6 +432,9 @@ public class HBaseTestingUtility {
     // It's also deprecated
     System.setProperty("test.cache.data", this.clusterTestDir.toString());
 
+    // Set the permissions for dfs data directories
+    this.conf.set("dfs.datanode.data.dir.perm", "700");
+    
     // Ok, now we can start
     this.dfsCluster = new MiniDFSCluster(0, this.conf, servers, true, true,
       true, null, null, hosts, null);