Return-Path: X-Original-To: apmail-zookeeper-user-archive@www.apache.org Delivered-To: apmail-zookeeper-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 54538107BF for ; Tue, 12 Nov 2013 04:47:45 +0000 (UTC) Received: (qmail 71239 invoked by uid 500); 12 Nov 2013 04:47:43 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 71196 invoked by uid 500); 12 Nov 2013 04:47:42 -0000 Mailing-List: contact user-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@zookeeper.apache.org Delivered-To: mailing list user@zookeeper.apache.org Received: (qmail 71187 invoked by uid 99); 12 Nov 2013 04:47:41 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Nov 2013 04:47:41 +0000 Received: from localhost (HELO mail-wi0-f181.google.com) (127.0.0.1) (smtp-auth username phunt, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Nov 2013 04:47:38 +0000 Received: by mail-wi0-f181.google.com with SMTP id m19so3141379wiv.14 for ; Mon, 11 Nov 2013 20:47:36 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=BuuTD2kxirWz0uO7BmRDrOZBLJzSWwiMfRWb/i2FjtU=; b=EOdz+WnQ3/J+PntB/vg+SQ3X3g0eMRPJi6BU9eRZeQVnB/eG//lmzySoX2NSfIvE5C OHIHs7ZekQ4prkNuzEg3OfNSLz3iO54wKLzpnZWtDEcmjl1BKajmAI52elN5dDQJ88FA uhO6IGdMcGWggFshNNve5G02ifyAWiaGjwBAzYd8PczYD9dEUUDd6eqmkVDNfLe/pBAm Zc/yFxDyr0SCBc/IvYnBBRlEBq+2Z7OgsX8CY65HTG8yVsB/Mgdvrc61Nho+/flxVabt tt9SJq8+dUFOh13fnKtFlNGg2R9MBwyWskAivQt7b25b46hX8sjcXN6xp7f1Kg1h528w yO5Q== X-Received: by 10.180.99.99 with SMTP id ep3mr14733425wib.11.1384231656792; Mon, 11 Nov 2013 20:47:36 -0800 (PST) MIME-Version: 1.0 Received: by 10.194.152.193 with HTTP; Mon, 11 Nov 2013 20:47:15 -0800 (PST) In-Reply-To: References: From: Patrick Hunt Date: Mon, 11 Nov 2013 20:47:15 -0800 Message-ID: Subject: Re: Staggered start of nodes in an ensemble To: UserZooKeeper Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable You might also try this utility for generating the configs: https://github.com/phunt/zkconf see the example $ zkconf.py =97servers =93host1.com,host2.com,168.1.1.1=94 ~/zookeeper_trun= k test3servers you'd probably want similar Patrick On Mon, Nov 11, 2013 at 8:45 PM, Patrick Hunt wrote: > You might also ensure that the vms can communicate over the ports > you're using. No firewall say. Have you looked at the logs at all? > They might shed more light as well. > > Patrick > > On Mon, Nov 11, 2013 at 7:13 PM, kishore g wrote: >> can you provide the configurations (zoo.cfg) on each server. From the >> description, your server 1 seems to be incorrectly configured. >> >> thanks, >> Kishore G >> >> >> On Mon, Nov 11, 2013 at 8:19 AM, Arindam Mukherjee < >> arindam.mukerjee@gmail.com> wrote: >> >>> Of late I have been bombarding this list with questions and am getting >>> a little frustrated at my lack of understanding of ZooKeeper. I am up >>> against deadlines that look infeasible now. :( >>> >>> Anyway, having majorly failed to get going with 3.5.0 (you might see a >>> question earlier today), I decided, for the purposes of a PoC to >>> create a static 3.4.6 configuration. Say, create max 3 VMs, of which 2 >>> are always up. Initially 1 and 2 would be up. I would be listing 3 >>> servers in the config - server.1 through server.3. >>> >>> I brought up the servers on 1 and 2 in that order using "zkServer.sh >>> start-foreground". However they failed to connect and form a quorum >>> and the foreground server process showed an increasing timeout. Then I >>> brought up 3 at which point 2 and 3 were able to connect. >>> >>> Next I started zkCli.sh from 1 - it failed to connect to any box. >>> However the ones on 2 and 3 connected neatly. I am at a little loss to >>> explain this. Need help. >>> >>> Thanks. >>> Arindam >>>