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 C11BC11F1B for ; Thu, 12 Jun 2014 23:56:16 +0000 (UTC) Received: (qmail 63970 invoked by uid 500); 12 Jun 2014 23:56:16 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 63925 invoked by uid 500); 12 Jun 2014 23:56:16 -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 63914 invoked by uid 99); 12 Jun 2014 23:56:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jun 2014 23:56:16 +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 ted.dunning@gmail.com designates 209.85.223.171 as permitted sender) Received: from [209.85.223.171] (HELO mail-ie0-f171.google.com) (209.85.223.171) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jun 2014 23:56:13 +0000 Received: by mail-ie0-f171.google.com with SMTP id x19so1806975ier.16 for ; Thu, 12 Jun 2014 16:55:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=CkHtKN+JvUzwS22oX3uDp/Z8txZiT0MvXNjDYpVGV+0=; b=GaMZrXB+uy2vr59fdVU7Ub+W7A3qeYmKFs/35e+GgJToIjH2IuQTC+vTNv4stXvzXk kEYGuppNdI883dyXSSac6xZfpMft5UcUjZPkbadL901hIUzeEKpUody8CHwCzmBGSTk9 sULe30NN1I0/pVb9wLHp+CL/7UcxJqlJcJTR8rm4oabShsEycKYR1xG92l7vVpU1ViGh 2eSN6z0oqFv9ZEjCoET14QeHpN0se7N0GwUZlqjaKWngoDnuZEOmJoOHigZvR6H6l6oU qgmmQeTzhH5h1SxP0oSSULR2H4I2gZYjvgN09aGhncVEXyLBhcqPJJBdsbl1NMbokb0Z IhUA== X-Received: by 10.42.244.201 with SMTP id lr9mr57628128icb.2.1402617349366; Thu, 12 Jun 2014 16:55:49 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.13.113 with HTTP; Thu, 12 Jun 2014 16:55:19 -0700 (PDT) In-Reply-To: References: From: Ted Dunning Date: Thu, 12 Jun 2014 16:55:19 -0700 Message-ID: Subject: Re: zookeeper cluster To: "user@zookeeper.apache.org" Content-Type: multipart/alternative; boundary=90e6ba614788dd71d804fbac4c1f X-Virus-Checked: Checked by ClamAV on apache.org --90e6ba614788dd71d804fbac4c1f Content-Type: text/plain; charset=UTF-8 The most common error that causes this is to not set up the myid files correctly. On Thu, Jun 12, 2014 at 4:47 PM, Cameron McKenzie wrote: > This is not correct, 3 is a minimum for redundancy. If 1 goes down, the > other 2 can still form a quorum (as there are more than half of them > remaining). There is likely a configuration issue in the original posters > case. Either that, or some sort of networking issue, in which the remaining > 2 nodes cannot communicate with each other. > > > On Fri, Jun 13, 2014 at 9:35 AM, James A. Robinson > wrote: > > > 3 is the minimum you can run, if you lose one > > the remaining 2 cannot reach consensus on > > who should be the leader. > > > > So my understanding has been that one > > should probably run at a minimum of 5 > > nodes. > > > > > > > > On Thu, Jun 12, 2014 at 1:07 PM, Lahiru Gunathilake > > wrote: > > > > > Hi Users, > > > > > > I have followed the cluster guide and created a zookeeper cluster with > 3 > > > nodes. After a successful start of the cluster I have created few nodes > > and > > > everything looked fine. I see one leader and two followers as we > expect. > > > > > > Now I killed the leader process in machine one and I am waiting for > rest > > of > > > the two processes to pick a new leader and start serving my requests, > > but > > > it seems two followers are simply trying to connect to each other and > > > throwing errors and whole cluster is not working. Here is my zoo.cfg > > file. > > > I tried to restart my leader to see whether cluster comes up > > automatically, > > > neither is happening. Am I starting too less server nodes or what is > the > > > issue with my setup. > > > > > > tickTime=2000 > > > initLimit=10 > > > syncLimit=5 > > > dataDir=/home/sgg/zookeeper/zookeeper-3.4.6/data > > > clientPort=2181 > > > server.1=149.160.172.65:2888:3888 > > > server.2=156.56.179.104:2888:3888 > > > server.3=gw110.iu.xsede.org:2888:3888 > > > > > > Can someone please correct me if I am doing something wrong. > > > > > > Thanks > > > Lahiru > > > -- > > > System Analyst Programmer > > > PTI Lab > > > Indiana University > > > > > > --90e6ba614788dd71d804fbac4c1f--