hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r1343977 - /hbase/branches/0.94/src/test/java/org/apache/hadoop/hbase/TestLocalHBaseCluster.java
Date Tue, 29 May 2012 20:51:40 GMT
Author: stack
Date: Tue May 29 20:51:40 2012
New Revision: 1343977

URL: http://svn.apache.org/viewvc?rev=1343977&view=rev
Log:
HBASE-6126 Fix broke TestLocalHBaseCluster in 0.92/0.94

Modified:
    hbase/branches/0.94/src/test/java/org/apache/hadoop/hbase/TestLocalHBaseCluster.java

Modified: hbase/branches/0.94/src/test/java/org/apache/hadoop/hbase/TestLocalHBaseCluster.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.94/src/test/java/org/apache/hadoop/hbase/TestLocalHBaseCluster.java?rev=1343977&r1=1343976&r2=1343977&view=diff
==============================================================================
--- hbase/branches/0.94/src/test/java/org/apache/hadoop/hbase/TestLocalHBaseCluster.java (original)
+++ hbase/branches/0.94/src/test/java/org/apache/hadoop/hbase/TestLocalHBaseCluster.java Tue
May 29 20:51:40 2012
@@ -17,7 +17,7 @@
  */
 package org.apache.hadoop.hbase;
 
-import static org.junit.Assert.*;
+import static org.junit.Assert.fail;
 
 import java.io.IOException;
 
@@ -29,7 +29,6 @@ import org.apache.hadoop.hbase.master.HM
 import org.apache.hadoop.hbase.regionserver.HRegionServer;
 import org.apache.hadoop.hbase.zookeeper.MiniZooKeeperCluster;
 import org.apache.zookeeper.KeeperException;
-
 import org.junit.Test;
 import org.junit.experimental.categories.Category;
 
@@ -45,6 +44,7 @@ public class TestLocalHBaseCluster {
   @Test
   public void testLocalHBaseCluster() throws Exception {
     Configuration conf = TEST_UTIL.getConfiguration();
+    conf.set(HConstants.HBASE_DIR, TEST_UTIL.getDataTestDir("hbase.rootdir").toString());
     MiniZooKeeperCluster zkCluster = TEST_UTIL.startMiniZKCluster();
     conf.set(HConstants.ZOOKEEPER_CLIENT_PORT, Integer.toString(zkCluster.getClientPort()));
     LocalHBaseCluster cluster = new LocalHBaseCluster(conf, 1, 1, MyHMaster.class,



Mime
View raw message