Return-Path: X-Original-To: apmail-hbase-user-archive@www.apache.org Delivered-To: apmail-hbase-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6A1CA70FE for ; Wed, 20 Jul 2011 21:50:36 +0000 (UTC) Received: (qmail 67011 invoked by uid 500); 20 Jul 2011 21:50:35 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 66814 invoked by uid 500); 20 Jul 2011 21:50:34 -0000 Mailing-List: contact user-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hbase.apache.org Delivered-To: mailing list user@hbase.apache.org Received: (qmail 66806 invoked by uid 99); 20 Jul 2011 21:50:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jul 2011 21:50:34 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of yuzhihong@gmail.com designates 74.125.83.169 as permitted sender) Received: from [74.125.83.169] (HELO mail-pv0-f169.google.com) (74.125.83.169) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jul 2011 21:50:25 +0000 Received: by pvc12 with SMTP id 12so717174pvc.14 for ; Wed, 20 Jul 2011 14:50:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=PzhgHO/ytxa7Tk8g0tcJi153GibwkHU2d/1jrS7XdKY=; b=i+G1hKBkXI7hx48a031tjEBVp4CtFeSUMjboMhNB9+Y7RawHjePh9HAlxja0ibj4se BC9j8a4Y5w0Br74ysYPgetyR7L/bkZngeueRM1TxsA548L2T7rmV12+XrjCk+X8WxG0b ey30lxZTkVKgiN1LsQh8lP+S/1gag/zIQr4Cg= MIME-Version: 1.0 Received: by 10.68.15.67 with SMTP id v3mr12012298pbc.5.1311198604388; Wed, 20 Jul 2011 14:50:04 -0700 (PDT) Received: by 10.68.42.193 with HTTP; Wed, 20 Jul 2011 14:50:04 -0700 (PDT) In-Reply-To: References: Date: Wed, 20 Jul 2011 14:50:04 -0700 Message-ID: Subject: Re: HBase & MapReduce & Zookeeper From: Ted Yu To: cdh-dev@cloudera.org Cc: user@hbase.apache.org Content-Type: multipart/alternative; boundary=bcaec520e88f0b686604a8873762 X-Virus-Checked: Checked by ClamAV on apache.org --bcaec520e88f0b686604a8873762 Content-Type: text/plain; charset=ISO-8859-1 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 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 >> >> > --bcaec520e88f0b686604a8873762--