Return-Path: Delivered-To: apmail-hbase-user-archive@www.apache.org Received: (qmail 6774 invoked from network); 26 Mar 2011 09:04:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 26 Mar 2011 09:04:54 -0000 Received: (qmail 93244 invoked by uid 500); 26 Mar 2011 09:04:52 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 93119 invoked by uid 500); 26 Mar 2011 09:04:51 -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 93100 invoked by uid 99); 26 Mar 2011 09:04:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Mar 2011 09:04:51 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of dlieu.7@gmail.com designates 209.85.220.169 as permitted sender) Received: from [209.85.220.169] (HELO mail-vx0-f169.google.com) (209.85.220.169) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Mar 2011 09:04:47 +0000 Received: by vxk20 with SMTP id 20so1239757vxk.14 for ; Sat, 26 Mar 2011 02:04:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=3/aIAKTXP0F4e5uPK/H6hHKQLX3d1muwj080VQEouEE=; b=xfa/U/GuvKDxOwfEJ9hml0MkSFs5AN7IgVpQWK/wZlPs+GKk5SWTuDwzQRk0X+8d1A Atb8qldFXdUPlDQMptEtkTdpSr9u/26VLX6qzkWMk7yrMPXUndlsQpLXGvm2TVturoey ddQdhYa/kXTEGoE/dyAbzGvrIRIUeWBVGxoos= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=hKkaxewF5g76wUB3wXDt5aVBJ7dmxGRTBKLBAcP+PSwUF81JIav6JcoGORmha9moBQ 26R8eD7z1og4gwSbS0fp4n3hYVGGXIfwUoXt1/ElNklPru6w690oFmJosQCLXG2RX6eE yJW4284kVas8ACsqEicQhdiw6B4XzUMjiXkco= MIME-Version: 1.0 Received: by 10.52.176.98 with SMTP id ch2mr2409537vdc.51.1301130266404; Sat, 26 Mar 2011 02:04:26 -0700 (PDT) Received: by 10.52.162.168 with HTTP; Sat, 26 Mar 2011 02:04:26 -0700 (PDT) In-Reply-To: References: Date: Sat, 26 Mar 2011 02:04:26 -0700 Message-ID: Subject: Re: zookeeper-3.3.2 has default maxClientCnxns set to 10? From: Dmitriy Lyubimov To: user@hbase.apache.org Cc: Alex Baranau , Stack , zookeeper-user@hadoop.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable yes i had a very similar issue although i prefer to think about it in terms of hbase and by extension zk connection leak in TableInputFormat rather than adjusting max zk connection to 30 'cause sooner or later you will run out of it too. The problem is that HConnectionManager now identifies hbase connection by identity comparison of the Configuration object. Which is kind of unfortunate because cloning configuration is a common practice and in reality it means every MR client would open its own connection to hbase. To exacerbate situation, TableInput/OutputFormats do not relinquish unshared connection and there's very little you can do work around this. I posted workaround to this i used with cdh3b4 just a day or two ago. The issue turned out to be a pain as it really quite hard to figure where and whether configuration objects get cloned or not. Also, if you use HTable, be mindful that you may want to release that connection explicitly too by calling HConnectionManager.deleteConnection (conf, true). On Fri, Mar 25, 2011 at 1:57 PM, Alex Baranau wr= ote: > I see what you are asking. I'm using stand-alone Zookeeper, not "internal= " > one of HBase. So it reads configuration only form zoo.cfg. And it seems t= hat > by default (when maxClientCnxns is absent in it) it acts like > maxClientCnxns=3D10. I'd expect it to be unlimited when this property is > omitted. At least it was like this.. > > Aha! I see they changed default to 10 *in 3.3.x*. I think HBase users won= 't > like it. What do you guys think? > > Alex Baranau > ---- > Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch - Hadoop - HBas= e > Hadoop ecosystem search :: http://search-hadoop.com/ > > On Fri, Mar 25, 2011 at 4:00 PM, Stack wrote: > >> On Fri, Mar 25, 2011 at 12:36 PM, Alex Baranau >> wrote: >> > As far as I know HBase configured to initiate up to 30 connections by >> > default, and maxClientCnxns for Zookeeper was meant to be 30 as well. >> >> Yes >> >> I'm not sure how it'd go from 30 to 10 (Is 10 the default connections >> for zk?). =A0Is it possible its not reading hbase-site.xml when the task >> runs? >> >> St.Ack >> >