Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
HBase >> mail # dev >> how to get ZooKeeperWatcher info ?


Copy link to this message
-
how to get ZooKeeperWatcher info ?
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

Demai
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB