From c6f4c60ac42a2e62f8fcc9c1ad3a49e86138fe6d Mon Sep 17 00:00:00 2001 From: Michael Stack Date: Thu, 9 May 2013 00:05:17 +0000 Subject: [PATCH] HBASE-1762 Remove concept of ZooKeeper from HConnection interface git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1480501 13f79535-47bb-0310-9956-ffa450edef68 --- .../coprocessor/example/TestZooKeeperScanPolicyObserver.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hbase-examples/src/test/java/org/apache/hadoop/hbase/coprocessor/example/TestZooKeeperScanPolicyObserver.java b/hbase-examples/src/test/java/org/apache/hadoop/hbase/coprocessor/example/TestZooKeeperScanPolicyObserver.java index b4b38b049bf..755acbf6076 100644 --- a/hbase-examples/src/test/java/org/apache/hadoop/hbase/coprocessor/example/TestZooKeeperScanPolicyObserver.java +++ b/hbase-examples/src/test/java/org/apache/hadoop/hbase/coprocessor/example/TestZooKeeperScanPolicyObserver.java @@ -80,8 +80,7 @@ public class TestZooKeeperScanPolicyObserver { 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