Return-Path: X-Original-To: apmail-curator-user-archive@minotaur.apache.org Delivered-To: apmail-curator-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B2037107DC for ; Mon, 4 Nov 2013 18:39:13 +0000 (UTC) Received: (qmail 15568 invoked by uid 500); 4 Nov 2013 18:39:13 -0000 Delivered-To: apmail-curator-user-archive@curator.apache.org Received: (qmail 15544 invoked by uid 500); 4 Nov 2013 18:39:13 -0000 Mailing-List: contact user-help@curator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@curator.apache.org Delivered-To: mailing list user@curator.apache.org Received: (qmail 15536 invoked by uid 99); 4 Nov 2013 18:39:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Nov 2013 18:39:13 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of bs4mailinglist@gmail.com designates 74.125.83.45 as permitted sender) Received: from [74.125.83.45] (HELO mail-ee0-f45.google.com) (74.125.83.45) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Nov 2013 18:39:07 +0000 Received: by mail-ee0-f45.google.com with SMTP id e50so1313988eek.18 for ; Mon, 04 Nov 2013 10:38:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=kms0kweLXOEXoHG3xS2+90jSN3tHDsXcbN7fRwZAfCk=; b=GdisFQHshHhOArwDXasIjiVbJv6KUig+FvQ0fQZt8Jj2GNGhfYfR54oGyvxlHdArV6 dcuaf8Iu2vEk3BA/bdtCz5Cu6hP+txI90R14wSjiqfap8rULYkdWXZSfmgu1KuvbUMLW ZbhG2CX9nNT/9z+6yxpkI2FF/9ITxSTVut2eCQwHLtJFzEqOBbTWA+XDcqfHyodqAe3F JBjPYWj43zFRZOErrmJUy0i5wF0ZDtQY0kZuPJVkAB6aR7sIY2d8zaGvX2NjwnyYAF7F 1UjEfYj5SHa9uxiSHl1xtid3jT5e3byEaGL7Lpkt6ksrflRfW8UFiwl+mFJXD7h3EEuS wZ7g== MIME-Version: 1.0 X-Received: by 10.14.183.130 with SMTP id q2mr6161085eem.64.1383590326753; Mon, 04 Nov 2013 10:38:46 -0800 (PST) Received: by 10.14.144.66 with HTTP; Mon, 4 Nov 2013 10:38:46 -0800 (PST) In-Reply-To: <87B17220-4EC2-4B8D-9786-CD8FD028EBA1@jordanzimmerman.com> References: <87B17220-4EC2-4B8D-9786-CD8FD028EBA1@jordanzimmerman.com> Date: Mon, 4 Nov 2013 20:38:46 +0200 Message-ID: Subject: Re: Leader Selection and failing node From: Sznajder ForMailingList To: user@curator.apache.org Content-Type: multipart/alternative; boundary=047d7b34429ef0ddc404ea5e391d X-Virus-Checked: Checked by ClamAV on apache.org --047d7b34429ef0ddc404ea5e391d Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable hi How do I give the clients three instances, please? I did not follow.... Benjamin On Mon, Nov 4, 2013 at 6:30 PM, Jordan Zimmerman wrote: > You need to give the clients all 3 instances. Otherwise, the clients won= =92t > have a server to connect to when you stop node_1. > > -JZ > > On Nov 4, 2013, at 7:19 AM, Sznajder ForMailingList < > bs4mailinglist@gmail.com> wrote: > > > Hi > > > > I ran the LeaderSelectorExample / Example classes on a real Zookeeper > chorum of three nodes > > - node_1 > > - node_2 > > - node_3 > > > > I start ZK on theses nodes by using: > > bin/zkServer.sh start command on each one of three nodes (Is it > necessary? Could I start only one of them? ) > > > > > > Then, I am launching the LeaderSelectorExample by giving it node_1:2181 > as connect string, on each one of the three nodes. > > I made two tests: > > > > - I stop the process on node_1 , the two other nodes continue to take > the leadership one after the other, as usual. > > > > - I stop ZOOKEEPER on node_1 by calling 'bin/zkServer.sh stop' on node_= 1. > > In this case, immediatly the current leader prints > > "relinquishing leadership" > > > > But **no one** takes the leadership then. And all the processes stay > stuck... > > > > > > Thanks for your help > > > > Benjamin > > > > --047d7b34429ef0ddc404ea5e391d Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable
hi

How do I give the clients three = instances, please?
I did not follow....


Benjamin


On Mon, No= v 4, 2013 at 6:30 PM, Jordan Zimmerman <jordan@jordanzimmerman.co= m> wrote:
You need to give the clients all 3 instances= . Otherwise, the clients won=92t have a server to connect to when you stop = node_1.

-JZ

On Nov 4, 2013, at 7:19 AM, Sznajder ForMailingList <bs4mailinglist@gmail.com> wrote:

> Hi
>
> I ran the LeaderSelectorExample / Example classes on a real Zookeeper = chorum of three nodes
> - node_1
> - node_2
> - node_3
>
> I start ZK on theses nodes by using:
> bin/zkServer.sh start command on each one of three nodes (Is it necess= ary? Could I start only one of them? )
>
>
> Then, I am launching the LeaderSelectorExample by giving it node_1:218= 1 as connect string, on each one of the three nodes.
> I made two tests:
>
> - I stop the process on node_1 , the two other nodes continue to take = the leadership one after the other, as usual.
>
> - I stop ZOOKEEPER on node_1 by calling 'bin/zkServer.sh stop'= on node_1.
> In this case, immediatly the current leader prints
> "relinquishing leadership"
>
> But **no one** takes the leadership then. And all the processes stay s= tuck...
>
>
> Thanks for your help
>
> Benjamin
>


--047d7b34429ef0ddc404ea5e391d--