hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stack <st...@duboce.net>
Subject Re: how to get ZooKeeperWatcher info ?
Date Sun, 18 Aug 2013 16:35:11 GMT
On Fri, Aug 16, 2013 at 9:58 AM, Demai Ni <nidmgg@gmail.com> wrote:

> hi, folks,
>
> I am writing some code to get the zookeeper while hbase is offline.
>
>     conf = HBaseConfiguration.create();
>     ....
>     connection = HConnectionManager.getConnection(conf);
>     zkw = connection.*getZooKeeperWatcher();*
>     replicationZK = new ReplicationZookeeper(connection, conf, zkw);
>
> the goal is to create a new replicationZookeeper. Well, the above code
> works, except connection.getZooKeeperWatcher() is deprecated in 0.94.
>
> Is there a way that I can complete the same logic without using the
> deprecated method? many thanks
>


HBASE-8439 removes ReplicationZooKeeper from trunk/0.96.

HBASE-1762 removes being able to get zookeeper from HConnection (zk is an
implementation detail that should not come through the HConnection
Interface).

Create your own RecoverableZooKeeper instance?
St.Ack

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message