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
This commit is contained in:
Michael Stack 2013-05-09 00:05:17 +00:00
parent cefa4fa671
commit c6f4c60ac4
1 changed files with 1 additions and 2 deletions

View File

@ -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