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:
parent
cefa4fa671
commit
c6f4c60ac4
|
@ -80,8 +80,7 @@ public class TestZooKeeperScanPolicyObserver {
|
||||||
HTable t = new HTable(new Configuration(TEST_UTIL.getConfiguration()), tableName);
|
HTable t = new HTable(new Configuration(TEST_UTIL.getConfiguration()), tableName);
|
||||||
long now = EnvironmentEdgeManager.currentTimeMillis();
|
long now = EnvironmentEdgeManager.currentTimeMillis();
|
||||||
|
|
||||||
ZooKeeperWatcher zkw = HConnectionManager.getConnection(TEST_UTIL.getConfiguration())
|
ZooKeeperWatcher zkw = new ZooKeeperWatcher(TEST_UTIL.getConfiguration(), "test", null);
|
||||||
.getZooKeeperWatcher();
|
|
||||||
ZooKeeper zk = zkw.getRecoverableZooKeeper().getZooKeeper();
|
ZooKeeper zk = zkw.getRecoverableZooKeeper().getZooKeeper();
|
||||||
ZKUtil.createWithParents(zkw, ZooKeeperScanPolicyObserver.node);
|
ZKUtil.createWithParents(zkw, ZooKeeperScanPolicyObserver.node);
|
||||||
// let's say test last backup was 1h ago
|
// let's say test last backup was 1h ago
|
||||||
|
|
Loading…
Reference in New Issue