hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r1480501 - /hbase/trunk/hbase-examples/src/test/java/org/apache/hadoop/hbase/coprocessor/example/TestZooKeeperScanPolicyObserver.java
Date Thu, 09 May 2013 00:05:17 GMT
Author: stack
Date: Thu May  9 00:05:17 2013
New Revision: 1480501

URL: http://svn.apache.org/r1480501
Log:
HBASE-1762 Remove concept of ZooKeeper from HConnection interface

Modified:
    hbase/trunk/hbase-examples/src/test/java/org/apache/hadoop/hbase/coprocessor/example/TestZooKeeperScanPolicyObserver.java

Modified: hbase/trunk/hbase-examples/src/test/java/org/apache/hadoop/hbase/coprocessor/example/TestZooKeeperScanPolicyObserver.java
URL: http://svn.apache.org/viewvc/hbase/trunk/hbase-examples/src/test/java/org/apache/hadoop/hbase/coprocessor/example/TestZooKeeperScanPolicyObserver.java?rev=1480501&r1=1480500&r2=1480501&view=diff
==============================================================================
--- hbase/trunk/hbase-examples/src/test/java/org/apache/hadoop/hbase/coprocessor/example/TestZooKeeperScanPolicyObserver.java
(original)
+++ hbase/trunk/hbase-examples/src/test/java/org/apache/hadoop/hbase/coprocessor/example/TestZooKeeperScanPolicyObserver.java
Thu May  9 00:05:17 2013
@@ -80,8 +80,7 @@ public class TestZooKeeperScanPolicyObse
     HTable t = new HTable(new Configuration(TEST_UTIL.getConfiguration()), tableName);
     long now = EnvironmentEdgeManager.currentTimeMillis();
 
-    ZooKeeperWatcher zkw = HConnectionManager.getConnection(TEST_UTIL.getConfiguration())
-        .getZooKeeperWatcher();
+    ZooKeeperWatcher zkw = new ZooKeeperWatcher(TEST_UTIL.getConfiguration(), "test", null);
     ZooKeeper zk = zkw.getRecoverableZooKeeper().getZooKeeper();
     ZKUtil.createWithParents(zkw, ZooKeeperScanPolicyObserver.node);
     // let's say test last backup was 1h ago



Mime
View raw message