hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Yu <yuzhih...@gmail.com>
Subject Re: HBase & MapReduce & Zookeeper
Date Wed, 20 Jul 2011 21:50:04 GMT
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 <a.reiter@web.de> 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
>>
>>
>

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