Return-Path: Delivered-To: apmail-hadoop-zookeeper-user-archive@minotaur.apache.org Received: (qmail 21202 invoked from network); 9 Oct 2009 14:26:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Oct 2009 14:26:59 -0000 Received: (qmail 75499 invoked by uid 500); 9 Oct 2009 14:26:58 -0000 Delivered-To: apmail-hadoop-zookeeper-user-archive@hadoop.apache.org Received: (qmail 75475 invoked by uid 500); 9 Oct 2009 14:26:58 -0000 Mailing-List: contact zookeeper-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: zookeeper-user@hadoop.apache.org Delivered-To: mailing list zookeeper-user@hadoop.apache.org Received: (qmail 75465 invoked by uid 99); 9 Oct 2009 14:26:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Oct 2009 14:26:58 +0000 X-ASF-Spam-Status: No, hits=2.7 required=10.0 tests=SPF_NEUTRAL,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [216.145.54.171] (HELO mrout1.yahoo.com) (216.145.54.171) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Oct 2009 14:26:46 +0000 Received: from [10.73.152.192] (snvvpn2-10-73-152-c192.hq.corp.yahoo.com [10.73.152.192]) by mrout1.yahoo.com (8.13.6/8.13.6/y.out) with ESMTP id n99EQHeV047405 for ; Fri, 9 Oct 2009 07:26:18 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; s=serpent; d=yahoo-inc.com; c=nofws; q=dns; h=message-id:date:from:user-agent:mime-version:to:subject: references:in-reply-to:content-type:content-transfer-encoding; b=METyy0rovObpg4DKEPiHbxGgXB2hX3cXHlTGz4vln965jtdwZUquGWwRDLx5V0ML Message-ID: <4ACF4809.7050601@yahoo-inc.com> Date: Fri, 09 Oct 2009 07:26:17 -0700 From: Benjamin Reed User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: "zookeeper-user@hadoop.apache.org" Subject: Re: Struggling with a simple configuration file. References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org right at the beginning of http://hadoop.apache.org/zookeeper/docs/r3.2.1/zookeeperStarted.html it shows you the minimum standalone configuration. that doesn't explain the 0 id. i'd like to try an reproduce it. do you have an empty data directory with a single file, myid, set to 1? ben Leonard Cuff wrote: > I�ve been developing for ZooKeeper for a couple months now, recently running > in a test configuration with 3 ZooKeeper servers. I�m running 3.2.1 with no > problems. Recently I tried to move to a single server configuration for the > development team environment, but couldn�t get the configuration to work. I > get the error java.lang.RuntimeException: My id 0 not in the peer list > > This would seem to imply that the myid file is set to zero. But ...it�s set > to 1. > > What�s puzzling to me is my original configuration of servers was this: > > server.1=ind104.an.dev.fastclick.net:2182:2183 <--- The machine I�m trying > to run standalone on. > server.2=build101.an.dev.fastclick.net:2182:2183 > server.3=cmedia101.an.dev.fastclick.net:2182:2183 > > I just removed the last two lines, and ran zkServer.sh start. It fails with > the described log message. (Full log given below). > When I put the server.2 and server.3 lines back in, it works fine, and is > following the build101 machine. > > I decided to try changing the server.1 to server.0, also changed the myid > file contents from 1 to zero. I get a very different error scenario: A > continuously-occurring Null Pointer exception: > > 2009-10-09 04:22:36,284 - WARN [QuorumPeer:/0.0.0.0:2181:QuorumPeer@490] - > Unexpected exception > java.lang.NullPointerException > at > org.apache.zookeeper.server.quorum.FastLeaderElection.totalOrderPredicate(Fa > stLeaderElection.java:466) > at > org.apache.zookeeper.server.quorum.FastLeaderElection.lookForLeader(FastLead > erElection.java:635) > at > org.apache.zookeeper.server.quorum.QuorumPeer.run(QuorumPeer.java:488) > > I�m at a loss to know where I�ve gone astray. > > Thanks in advance for any and all help. > > Leonard > > --- the first log > > 2009-10-09 04:08:58,769 - INFO [main:QuorumPeerConfig@80] - Reading > configuration from: > /vcm/home/sandbox/ticket_161758-1/vcm/component/zookeeper/conf/zoo.cfg.dev > 2009-10-09 04:08:58,795 - INFO [main:QuorumPeerMain@118] - Starting quorum > peer > 2009-10-09 04:08:58,845 - FATAL [main:QuorumPeerMain@86] - Unexpected > exception, exiting abnormally > java.lang.RuntimeException: My id 0 not in the peer list > at > org.apache.zookeeper.server.quorum.QuorumPeer.startLeaderElection(QuorumPeer > .java:333) > at > org.apache.zookeeper.server.quorum.QuorumPeer.start(QuorumPeer.java:314) > at > org.apache.zookeeper.server.quorum.QuorumPeerMain.runFromConfig(QuorumPeerMa > in.java:137) > at > org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPee > rMain.java:102) > at > org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:7 > 5) > > -- the second log > > 2009-10-09 04:22:36,284 - WARN [QuorumPeer:/0.0.0.0:2181:QuorumPeer@490] - > Unexpected exception > java.lang.NullPointerException > at > org.apache.zookeeper.server.quorum.FastLeaderElection.totalOrderPredicate(Fa > stLeaderElection.java:466) > at > org.apache.zookeeper.server.quorum.FastLeaderElection.lookForLeader(FastLead > erElection.java:635) > at > org.apache.zookeeper.server.quorum.QuorumPeer.run(QuorumPeer.java:488) > 2009-10-09 04:22:36,285 - INFO [QuorumPeer:/0.0.0.0:2181:QuorumPeer@487] - > LOOKING > 2009-10-09 04:22:36,285 - INFO > [QuorumPeer:/0.0.0.0:2181:FastLeaderElection@579] - New election: 12 > 2009-10-09 04:22:36,285 - INFO > [QuorumPeer:/0.0.0.0:2181:FastLeaderElection@618] - Notification: 0, 12, > 43050, 0, LOOKING, LOOKING, 0 > 2009-10-09 04:22:36,285 - WARN [QuorumPeer:/0.0.0.0:2181:QuorumPeer@490] - > Unexpected exception > java.lang.NullPointerException > at > org.apache.zookeeper.server.quorum.FastLeaderElection.totalOrderPredicate(Fa > stLeaderElection.java:466) > at > org.apache.zookeeper.server.quorum.FastLeaderElection.lookForLeader(FastLead > erElection.java:635) > at > org.apache.zookeeper.server.quorum.QuorumPeer.run(QuorumPeer.java:488) > 2009-10-09 04:22:36,286 - INFO [QuorumPeer:/0.0.0.0:2181:QuorumPeer@487] - > LOOKING > 2009-10-09 04:22:36,286 - INFO > [QuorumPeer:/0.0.0.0:2181:FastLeaderElection@579] - New election: 12 > 2009-10-09 04:22:36,286 - INFO > [QuorumPeer:/0.0.0.0:2181:FastLeaderElection@618] - Notification: 0, 12, > 43051, 0, LOOKING, LOOKING, 0 > 2009-10-09 04:22:36,286 - WARN [QuorumPeer:/0.0.0.0:2181:QuorumPeer@490] - > Unexpected exception > java.lang.NullPointerException > at > org.apache.zookeeper.server.quorum.FastLeaderElection.totalOrderPredicate(Fa > stLeaderElection.java:466) > at > org.apache.zookeeper.server.quorum.FastLeaderElection.lookForLeader(FastLead > erElection.java:635) > at > org.apache.zookeeper.server.quorum.QuorumPeer.run(QuorumPeer.java:488) > 2009-10-09 04:22:36,286 - INFO [QuorumPeer:/0.0.0.0:2181:QuorumPeer@487] - > LOOKING > 2009-10-09 04:22:36,287 - INFO > [QuorumPeer:/0.0.0.0:2181:FastLeaderElection@579] - New election: 12 > 2009-10-09 04:22:36,287 - INFO > [QuorumPeer:/0.0.0.0:2181:FastLeaderElection@618] - Notification: 0, 12, > 43052, 0, LOOKING, LOOKING, 0 > 2009-10-09 04:22:36,287 - WARN [QuorumPeer:/0.0.0.0:2181:QuorumPeer@490] - > Unexpected exception > java.lang.NullPointerException > at > org.apache.zookeeper.server.quorum.FastLeaderElection.totalOrderPredicate(Fa > stLeaderElection.java:466) > at > org.apache.zookeeper.server.quorum.FastLeaderElection.lookForLeader(FastLead > erElection.java:635) > at > org.apache.zookeeper.server.quorum.QuorumPeer.run(QuorumPeer.java:488) > 2009-10-09 04:22:36,287 - INFO [QuorumPeer:/0.0.0.0:2181:QuorumPeer@487] - > LOOKING > 2009-10-09 04:22:36,287 - INFO > [QuorumPeer:/0.0.0.0:2181:FastLeaderElection@579] - New election: 12 > 2009-10-09 04:22:36,287 - INFO > [QuorumPeer:/0.0.0.0:2181:FastLeaderElection@618] - Notification: 0, 12, > 43053, 0, LOOKING, LOOKING, 0 > 2009-10-09 04:22:36,288 - WARN [QuorumPeer:/0.0.0.0:2181:QuorumPeer@490] - > Unexpected exception > ja >