This seems to be cdh related.
>> either the map HConnectionManager.HBASE_INSTANCES does not contain the
connection for the current config
You need to pass the same conf object.
In trunk, I added the following:
public static void deleteStaleConnection(HConnection connection) {
See
http://zhihongyu.blogspot.com/2011/04/managing-connections-in-hbase-090-and.html
Last resort is:
public static void deleteAllConnections(boolean stopProxy) {
Cheers
On Wed, Jul 20, 2011 at 2:03 PM, Andre Reiter <[email protected]> wrote:
> unfortunatelly there was no such LOG entry... :-(
>
> our versions:
> hadoop-0.20.2-CDH3B4
> hbase-0.90.1-CDH3B4
> zookeeper-3.3.2-CDH3B4
>
> either the map HConnectionManager.HBASE_**INSTANCES does not contain the
> connection for the current config, or HConnectionImplementation.**zooKeeper
> is null
> but the zookeeper connections are there, i can see them with "lsof | grep
> 2181"
>
> andre
>
>
>
> schrieb Ted Yu:
>
> Andre:
>> So you didn't see the following in client log (HConnectionManager line
>> 1067)
>> ?
>> LOG.info("Closed zookeeper sessionid=0x" +
>> Long.toHexString(this.**zooKeeper.getZooKeeper().**
>> getSessionId()));
>> HConnectionManager.**deleteConnection(conf, true) is supposed to close zk
>> connection in 0.90.x
>>
>>
>