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 BE82F1028A for ; Thu, 29 Jan 2015 00:13:44 +0000 (UTC) Received: (qmail 51130 invoked by uid 500); 29 Jan 2015 00:13:44 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 51084 invoked by uid 500); 29 Jan 2015 00:13:44 -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 51072 invoked by uid 99); 29 Jan 2015 00:13:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Jan 2015 00:13:44 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=FREEMAIL_REPLY,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mckenzie.cam@gmail.com designates 209.85.217.173 as permitted sender) Received: from [209.85.217.173] (HELO mail-lb0-f173.google.com) (209.85.217.173) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Jan 2015 00:13:18 +0000 Received: by mail-lb0-f173.google.com with SMTP id p9so22729399lbv.4 for ; Wed, 28 Jan 2015 16:12:31 -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=yfBg+0kR0dUZzaL4Cwbztk3CoMuQU4rcDdegn2BMlCk=; b=ToUO5g/EwfAWUMRJSWjdJ/afEbB4Orx2Z0kmzhUh/FTpqLOSPxNK41aMYP/2Hic8FU lBmBB2J+1WktGnMSqMKNb5PzkcMYioIUPCJ3A4uDOtbgMmwGkqKbufu9Szu0BK2OG6/9 RxbWKBXXNF+rjmPhb5MEp6Ab6Jb9eVISRrg8EhHO367EB7yJWEAkq0x8ci9StCbVdiZB lm3JDMvZ2YO/JNKNK5/KAjaqLN0NG1A+vDjBqQUt+PZQBtTJyShpmHkutqy7KaRrOBr5 AzeTwJp+yiwAXq17pGBFj/igZMVuV4HA/D6hlusvm4mcQtmzxOtx7CwuPP99X+QL3oA3 d93w== MIME-Version: 1.0 X-Received: by 10.112.202.195 with SMTP id kk3mr11343069lbc.53.1422490351361; Wed, 28 Jan 2015 16:12:31 -0800 (PST) Received: by 10.112.73.101 with HTTP; Wed, 28 Jan 2015 16:12:31 -0800 (PST) In-Reply-To: References: Date: Thu, 29 Jan 2015 11:12:31 +1100 Message-ID: Subject: Re: Basic 3 ZK, bring 1 down question. From: Cameron McKenzie To: user@zookeeper.apache.org Content-Type: multipart/alternative; boundary=001a11c36b0416e383050dbf589a X-Virus-Checked: Checked by ClamAV on apache.org --001a11c36b0416e383050dbf589a Content-Type: text/plain; charset=UTF-8 Can't help you out on the Exhibitor front as I haven't used it. I'd have a look at the configuration files it's generating though as it appears that some of the nodes are configured as observers rather than fully fledged node members. On Thu, Jan 29, 2015 at 11:08 AM, Dillian Murphey wrote: > Thanks Cameron, ok so I just ran the exercise again. I killed a server. > The other two ZKs go offline and the zookeeper.out log is as so: > > So why does this feel as if I need to manually adjust the config file? > > Thanks. P.S. I am using netflix opensource exhibitor. It may be a factor, I > don't know. The creator seems to brush me off a lot. > > 2015-01-29 00:05:51,271 [myid:] - ERROR [main:QuorumPeerMain@85] - Invalid > config, exiting abnormally > org.apache.zookeeper.server.quorum.QuorumPeerConfig$ConfigException: Error > processing /zookeeper/zookeeper-3.4.6/bin/../conf/zoo.cfg > at > > org.apache.zookeeper.server.quorum.QuorumPeerConfig.parse(QuorumPeerConfig.java:123) > at > > org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:101) > at > > org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:78) > Caused by: java.lang.IllegalArgumentException: Observers w/o quorum is an > invalid configuration > at > > org.apache.zookeeper.server.quorum.QuorumPeerConfig.parseProperties(QuorumPeerConfig.java:284) > at > > org.apache.zookeeper.server.quorum.QuorumPeerConfig.parse(QuorumPeerConfig.java:119) > ... 2 more > Invalid config, exiting abnormally > tail: zookeeper.out: file truncated > 2015-01-29 00:06:11,561 [myid:] - INFO [main:QuorumPeerConfig@103] - > Reading configuration from: /zookeeper/zookeeper-3.4.6/bin/../conf/zoo.cfg > 2015-01-29 00:06:11,566 [myid:] - ERROR [main:QuorumPeerMain@85] - Invalid > config, exiting abnormally > org.apache.zookeeper.server.quorum.QuorumPeerConfig$ConfigException: Error > processing /zookeeper/zookeeper-3.4.6/bin/../conf/zoo.cfg > at > > org.apache.zookeeper.server.quorum.QuorumPeerConfig.parse(QuorumPeerConfig.java:123) > at > > org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:101) > at > > org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:78) > Caused by: java.lang.IllegalArgumentException: Observers w/o quorum is an > invalid configuration > at > > org.apache.zookeeper.server.quorum.QuorumPeerConfig.parseProperties(QuorumPeerConfig.java:284) > at > > org.apache.zookeeper.server.quorum.QuorumPeerConfig.parse(QuorumPeerConfig.java:119) > ... 2 more > Invalid config, exiting abnormally > > On Wed, Jan 28, 2015 at 3:45 PM, Cameron McKenzie > wrote: > > > Assuming that your 2 remaining servers can communicate with each other > the > > cluster should should remain online as it still has a quorum (2 / 3 nodes > > are online). There may be a brief period where the cluster won't accept > > requires while a new leadership election occurs between the 2 remaining > > nodes. > > cheers > > Cam > > > > On Thu, Jan 29, 2015 at 10:40 AM, Dillian Murphey < > crackshotmule@gmail.com > > > > > wrote: > > > > > If I have 3 ZK instances running on separate servers and I terminate > one > > of > > > the servers, what should I expect to happen? > > > > > > Will the remaining 2 zookeepers continue happily and stay online > without > > > any interruption? > > > > > > I'm using exhibitor/zookeeper and I'm attempting this scenerio and what > > I'm > > > seeing is my remaining 2 zookeepers go offline. I thought the whole > > point > > > of having a majority was to allow a failure? > > > > > > > > > Thank you. I'm new so be kind. > > > > > > --001a11c36b0416e383050dbf589a--