james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fel...@apache.org
Subject svn commit: r1181806 - /james/mailbox/trunk/hbase/src/test/java/org/apache/james/mailbox/hbase/HBaseClusterSingleton.java
Date Tue, 11 Oct 2011 14:29:32 GMT
Author: felixk
Date: Tue Oct 11 14:29:32 2011
New Revision: 1181806

URL: http://svn.apache.org/viewvc?rev=1181806&view=rev
Log:
This fixes the test cases at least on my linux box (see also comment in fix). ATM I've no
idea howto get the set "umask" in java to make dyamical. Maybe anybody else?

Modified:
    james/mailbox/trunk/hbase/src/test/java/org/apache/james/mailbox/hbase/HBaseClusterSingleton.java

Modified: james/mailbox/trunk/hbase/src/test/java/org/apache/james/mailbox/hbase/HBaseClusterSingleton.java
URL: http://svn.apache.org/viewvc/james/mailbox/trunk/hbase/src/test/java/org/apache/james/mailbox/hbase/HBaseClusterSingleton.java?rev=1181806&r1=1181805&r2=1181806&view=diff
==============================================================================
--- james/mailbox/trunk/hbase/src/test/java/org/apache/james/mailbox/hbase/HBaseClusterSingleton.java
(original)
+++ james/mailbox/trunk/hbase/src/test/java/org/apache/james/mailbox/hbase/HBaseClusterSingleton.java
Tue Oct 11 14:29:32 2011
@@ -51,6 +51,15 @@ public class HBaseClusterSingleton {
         if (useMiniCluster) {
             HBaseTestingUtility htu = new HBaseTestingUtility();
             htu.getConfiguration().setBoolean("dfs.support.append", true);
+            
+            // TODO
+            // I got wrong filepermissions on the created files. This fixes it for me.
+            // Maybe this depends on the umask settings on the local linux box?
+            // IMO following line should solve this, but it doesn't ..
+            // (see http://hadoop.apache.org/hdfs/docs/r0.21.0/hdfs-default.html)
+            //
+            // htu.getConfiguration().set("dfs.permissions.enabled", "false");
+            htu.getConfiguration().set("dfs.datanode.data.dir.perm", "775");
             try {
                 hbaseCluster = htu.startMiniCluster();
                 conf = hbaseCluster.getConfiguration();



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message