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 2728F92A2 for ; Sun, 4 Dec 2011 15:04:02 +0000 (UTC) Received: (qmail 16240 invoked by uid 500); 4 Dec 2011 15:04:00 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 16205 invoked by uid 500); 4 Dec 2011 15:04:00 -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 16196 invoked by uid 99); 4 Dec 2011 15:04:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Dec 2011 15:04:00 +0000 X-ASF-Spam-Status: No, hits=1.6 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of rmorgan466@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; Sun, 04 Dec 2011 15:03:54 +0000 Received: by vcbfk26 with SMTP id fk26so4419115vcb.14 for ; Sun, 04 Dec 2011 07:03:33 -0800 (PST) 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 :content-type; bh=VG44WgqkfEvQ4Yc0v60B+PSF/W273oRV7Rpe0SqH5/4=; b=eh10ZeRGB3mYy/cxHzvQkVdliizziPgxqztjjsPnyY5Kg6gOsOtsPQZ81qZehwQrMw 8bHf4uU9BrQL8tKfWbmIcHAsLJNgGbctbWyjAME6Pg1yFq7lRUccazJvGaR4Sj/55lrD 7soTS4BmrcEyQb1mlXKiOLT6oBv7crdrlneiY= MIME-Version: 1.0 Received: by 10.52.114.232 with SMTP id jj8mr2819771vdb.94.1323011012748; Sun, 04 Dec 2011 07:03:32 -0800 (PST) Received: by 10.220.151.69 with HTTP; Sun, 4 Dec 2011 07:03:32 -0800 (PST) In-Reply-To: References: Date: Sun, 4 Dec 2011 10:03:32 -0500 Message-ID: Subject: Re: zookeeper quorum verification From: Rita To: user@hbase.apache.org Content-Type: multipart/alternative; boundary=bcaec547cad972e5a204b3458180 X-Virus-Checked: Checked by ClamAV on apache.org --bcaec547cad972e5a204b3458180 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thanks for the nice responses and advice. To sum up this thread This will not work, $ host roundrobindnsentry roundrobindnsentry has address 192.168.0.2 roundrobindnsentry has address 192.168.0.5 roundrobindnsentry has address 192.168.0.6 $ host roundrobindnsentry roundrobindnsentry has address 192.168.0.5 roundrobindnsentry has address 192.168.0.6 roundrobindnsentry has address 192.168.0.2 =CDn your hbase-site.xml hbase.zookeeper.quorum roundrobindnsentry This will not work because when you start up the hbase cluster it will complain the zookeeper is already running. Basically it will get confused because of the round robin DNS entries. However, this WILL work if in your application you set, roundrobingdns entry. On Sat, Dec 3, 2011 at 8:09 PM, Shrijeet Paliwal w= rote: > >>Now any HBase client that needs to connect to zookeeper, can talk to > quorum via "zookeeper-quorum.example.com" > > Must add the reason above works is zookeeper uses InetAddress.getAllByNa= me > < > http://docs.oracle.com/javase/1.3/docs/api/java/net/InetAddress.html#getA= llByName(java.lang.String) > >to > build the server address list > > On Sat, Dec 3, 2011 at 5:06 PM, Shrijeet Paliwal >wrote: > > > Suraj, > > Combine what J-D & David said. For example in our case > > > > 1. We let HBase manage zookeeper > > 2. Set the config in hbase-site.xml the way David mentioned > > : > 0.zookeeper,1.zookeeper,2.zookeeper,3.zookeeper,4.zookeeper > > 3. Also have a DNS entry "zookeeper-quorum.example.com" with multipl= e > > IPs (all mentioned above) resolving to this entry > > 4. Now any HBase client that needs to connect to zookeeper, can talk > > to quorum via "zookeeper-quorum.example.com" > > > > One might think why we cant have hbase-site use "" > > zookeeper-quorum.example.com" as well. My understanding is when you > start > > a zookeeper daemon on a server, the hbase managed zookeeper service wil= l > > fetch the the default host name using hadoop's DNS.getDefaultHost metho= d. > > The hostname returned may or may not find a match in the server list yo= u > > mentioned in hbase-site.xml. If does not match you get the error > mentioned > > here http://wiki.apache.org/hadoop/Hbase/Troubleshooting#A9. > > > > For example, in our case zookeeper host has two hostnames associated wi= th > > default ethernet interface. First name is host.domain.com and second is > > the special DNS entry I talked about in (4). The DNS.getDefaultHost > returns > > host.domain.com and zookeeper fails to start. > > > > I would be interested if some one has a different way of handling the > > situation I described. > > > > On Sat, Dec 3, 2011 at 4:45 PM, Suraj Varma wrote= : > > > >> Yes - this makes sense. But, I thought what Rita suggested was a > >> single appquorum dns entry ... which was surprising. > >> > >> Hence my question. > >> --Suraj > >> > >> On Sat, Dec 3, 2011 at 10:40 AM, Dave Barr wrote= : > >> > What we do is make N.zookeeper.$DC.$DOMAIN entries in DNS. We have > >> > one ZK cluster per DC. Our configs then just point to > >> > > >> > > >> > 0.zookeeper,1.zookeeper,2.zookeeper,3.zookeeper,4.zookeeper > >> > > >> > --Dave > >> > > >> > On Sat, Dec 3, 2011 at 6:15 AM, Suraj Varma > >> wrote: > >> >> J-D: > >> >> Did you mean that a _single_ dns entry returns all five ips belongi= ng > >> >> to individual zk nodes? > >> >> > >> >> Is this used only by "clients" ... or even within the cluster? > >> >> And ... the zk nodes self-identify by IP ... and is this how region > >> >> server nodes reach out specifically to the "leader" zk node? > >> >> --Suraj > >> >> > >> >> > >> >> On Wed, Nov 30, 2011 at 4:14 PM, Jean-Daniel Cryans < > >> jdcryans@apache.org> wrote: > >> >>> It's pretty much what we do, works well. > >> >>> > >> >>> J-D > >> >>> > >> >>> On Wed, Nov 30, 2011 at 3:49 PM, Rita wrote= : > >> >>>> Hello, > >> >>>> > >> >>>> > >> >>>> Previously, I assigned 5 servers as part of the zookeeper quorum. > >> >>>> Everything works fine but I was hard coding these 5 servers > >> everywhere and > >> >>>> I was thinking of creating a dns entry called appquorum which wil= l > >> always > >> >>>> return these 5 servers IPs. > >> >>>> > >> >>>> Any thoughts about this? > >> >>>> > >> >>>> > >> >>>> > >> >>>> -- > >> >>>> --- Get your facts first, then you can distort them as you > please.-- > >> > > > > > --=20 --- Get your facts first, then you can distort them as you please.-- --bcaec547cad972e5a204b3458180--