Return-Path: X-Original-To: apmail-hbase-dev-archive@www.apache.org Delivered-To: apmail-hbase-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9AFE26AB5 for ; Wed, 6 Jul 2011 21:14:39 +0000 (UTC) Received: (qmail 55105 invoked by uid 500); 6 Jul 2011 21:14:39 -0000 Delivered-To: apmail-hbase-dev-archive@hbase.apache.org Received: (qmail 55055 invoked by uid 500); 6 Jul 2011 21:14:38 -0000 Mailing-List: contact dev-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list dev@hbase.apache.org Received: (qmail 55047 invoked by uid 99); 6 Jul 2011 21:14:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jul 2011 21:14:38 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,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 saint.ack@gmail.com designates 209.85.216.41 as permitted sender) Received: from [209.85.216.41] (HELO mail-qw0-f41.google.com) (209.85.216.41) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jul 2011 21:14:30 +0000 Received: by qwa26 with SMTP id 26so214779qwa.14 for ; Wed, 06 Jul 2011 14:14:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=oIWTr+lJ0YXMOut0Io0aXD8obJBGf0Qzl4JGRvk+Dik=; b=ZLDdACBvp5xGhZ+V35UGQfpFPpdhuf/AUgwZbiJjxKj5Dn4rt6W1sA5WkCF89vd9W2 2mDvFLfIw98XkPtok2YPJeqDRg6WPx0Oor0cBqvHwV+Gmc9wvceRPcRHPFXSYNT1YI+d ssVSXXBA90k0OXEPw8zN9Jqr6KCntkJ3sExWM= MIME-Version: 1.0 Received: by 10.224.69.7 with SMTP id x7mr57880qai.15.1309986849442; Wed, 06 Jul 2011 14:14:09 -0700 (PDT) Sender: saint.ack@gmail.com Received: by 10.224.37.141 with HTTP; Wed, 6 Jul 2011 14:14:09 -0700 (PDT) In-Reply-To: References: <19B0D6EC092CA24CB061EF3CD535C92F64C3EA57@ASHBMBX05.resource.ds.bah.com> Date: Wed, 6 Jul 2011 14:14:09 -0700 X-Google-Sender-Auth: 4iqd7xS0er8ps9nWPG51e4ugjjY Message-ID: Subject: Re: zoo.cfg vs hbase-site.xml From: Stack To: dev@hbase.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org I agree that we should be more consistent in how we get zk config (Your original report looks like a bug Lars). I also recently tripped over the fact that hbase uses different names for one or two zk configs. We need to fix that too. St.Ack On Mon, Jul 4, 2011 at 8:59 AM, Jesse Yates wrote= : > Isn't that kind of the point though? If you drop in a zk config file on a > machine, you should be able to update all your apps on that machine to th= e > new config. > Whats more important though is being able to easily distribute a changed = zk > config across your cluster and simultaneously across multiple application= s. > Rather than rewriting the confs for a handful of applications, and possib= ly > making a mistake dealing with each application's own special semantics, a= nd > single conf to update everything just makes sense. > > I would lobby then that we make usage more consistent (as Lars recommends= ) > and make some of the hbase conf values to more closely match the zk conf > values (though hbase.${zk.value} is really not bad). > > -Jesse > > > From: Ryan Rawson [ryanobjc@gmail.com] >> Sent: Monday, July 04, 2011 5:25 AM >> To: dev@hbase.apache.org >> Subject: Re: zoo.cfg vs hbase-site.xml >> >> Should just fully deprecate zoo.cfg, it ended up being more trouble >> than it was worth. =A0When you use zoo.cfg you cannot connect to more >> than 1 cluster from a single JVM. =A0Annoying! >> >> On Sun, Jul 3, 2011 at 10:22 AM, Ted Yu wrote: >> > I looked at conf/zoo_sample.cfg from zookeeper trunk. The naming of >> > properties is different from the way we name >> > "hbase.zookeeper.property.maxClientCnxns" >> > >> > e.g. >> > # the port at which the clients will connect >> > clientPort=3D2181 >> > >> > FYI >> > >> > On Sun, Jul 3, 2011 at 9:53 AM, Lars George >> wrote: >> > >> >> Hi, >> >> >> >> Usually the zoo.cfg overrides *all* settings off the hbase-site.xml >> >> (including the ones from hbase-default.xml) - when present. But in so= me >> >> places we do not consider this, for example in HConnectionManager: >> >> >> >> =A0static { >> >> =A0 =A0// We set instances to one more than the value specified for {= @link >> >> =A0 =A0// HConstants#ZOOKEEPER_MAX_CLIENT_CNXNS}. By default, the zk = default >> >> max >> >> =A0 =A0// connections to the ensemble from the one client is 30, so i= n that >> >> case we >> >> =A0 =A0// should run into zk issues before the LRU hit this value of = 31. >> >> =A0 =A0MAX_CACHED_HBASE_INSTANCES =3D HBaseConfiguration.create().get= Int( >> >> =A0 =A0 =A0 =A0HConstants.ZOOKEEPER_MAX_CLIENT_CNXNS, >> >> =A0 =A0 =A0 =A0HConstants.DEFAULT_ZOOKEPER_MAX_CLIENT_CNXNS) + 1; >> >> =A0 =A0HBASE_INSTANCES =3D new LinkedHashMap> >> HConnectionImplementation>( >> >> =A0 =A0 =A0 =A0(int) (MAX_CACHED_HBASE_INSTANCES / 0.75F) + 1, 0.75F,= true) { >> >> =A0 =A0 =A0 @Override >> >> =A0 =A0 =A0protected boolean removeEldestEntry( >> >> =A0 =A0 =A0 =A0 =A0Map.Entry eldest) { >> >> =A0 =A0 =A0 =A0 return size() > MAX_CACHED_HBASE_INSTANCES; >> >> =A0 =A0 =A0 } >> >> =A0 =A0}; >> >> >> >> >> >> This only reads it from hbase-site.xml+hbase-default.xml. This is >> >> inconsistent, I think this should use ZKConfig.makeZKProps(conf) and >> then >> >> get the value. >> >> >> >> Thoughts? >> >> >> >> Lars >> >> >> > >> >