From 1f253c23fa3b5b0491c7ddea73406d555c891ad1 Mon Sep 17 00:00:00 2001 From: Michael Stack Date: Thu, 5 Apr 2012 20:20:55 +0000 Subject: [PATCH] HBASE-5711 Tests are failing with incorrect data directory permissions. git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1310050 13f79535-47bb-0310-9956-ffa450edef68 --- src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java b/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java index 3f239e06814..64dc2c0555b 100644 --- a/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java +++ b/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java @@ -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);