Return-Path: Delivered-To: apmail-hadoop-zookeeper-user-archive@minotaur.apache.org Received: (qmail 62536 invoked from network); 21 Jun 2010 19:05:00 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 21 Jun 2010 19:05:00 -0000 Received: (qmail 30925 invoked by uid 500); 21 Jun 2010 19:04:59 -0000 Delivered-To: apmail-hadoop-zookeeper-user-archive@hadoop.apache.org Received: (qmail 30847 invoked by uid 500); 21 Jun 2010 19:04:59 -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 30839 invoked by uid 99); 21 Jun 2010 19:04:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Jun 2010 19:04:59 +0000 X-ASF-Spam-Status: No, hits=3.3 required=10.0 tests=AWL,FREEMAIL_FROM,FS_REPLICA,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of erik.shiken@gmail.com designates 209.85.160.48 as permitted sender) Received: from [209.85.160.48] (HELO mail-pw0-f48.google.com) (209.85.160.48) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Jun 2010 19:04:53 +0000 Received: by pwi2 with SMTP id 2so2928137pwi.35 for ; Mon, 21 Jun 2010 12:04:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=dgR3/O9x6CN7QoDn8LB+IkPgQS98JSQqRmJrZoJizdI=; b=g2ft1w4eswTFAJUIJIC+fKQ3b2Ghqgs/PoJTmuZYRzyEwaY4O7Tn1plXLxsXFwEX0y WpNHbIejLK/+y+je6S3WXzyiUEB0oPbBNnRDM8JONZHJKItl/yTaZmKgdc2Ap99moMn3 SdhYTthvPgNwnOpRl9Pna+tQZUfeTfCS6W4uc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=vhFxtivvlFqVdwPwWL6x1VYq6Wi/VHJ3Wwi4POa0Kp7161FAmjUn/3iBum/YK4l4Lo r+ZD9pSp8FOkWY1PQMYaU5OOyFX90q2qwSn4vyudCGDw/+B2JdokNRGi9OL9aN6JZlls Z3wwSrDGVHxmMqtChc6tbdyWFJK8/DOXdh6Lo= MIME-Version: 1.0 Received: by 10.142.55.20 with SMTP id d20mr3823839wfa.331.1277147072154; Mon, 21 Jun 2010 12:04:32 -0700 (PDT) Received: by 10.142.204.6 with HTTP; Mon, 21 Jun 2010 12:04:32 -0700 (PDT) Date: Mon, 21 Jun 2010 15:04:32 -0400 Message-ID: Subject: Starting zookeeper in replicated mode From: Erik Test To: zookeeper-user@hadoop.apache.org Content-Type: multipart/alternative; boundary=0050450296258fcd2a04898ef991 --0050450296258fcd2a04898ef991 Content-Type: text/plain; charset=UTF-8 Hi All, I'm having a problem with installing zookeeper on a cluster with 6 nodes in replicated mode. I was able to install and run zookeeper in standalone mode but I'm unable to run zookeeper in replicated mode. I've added a list of servers in zoo.cfg as suggested by the ZooKeeper Getting Started Guide but I get these logs displayed to screen: *[root@master1 bin]# ./zkServer.sh start JMX enabled by default Using config: /root/zookeeper-3.2.2/bin/../conf/zoo.cfg Starting zookeeper ... STARTED [root@master1 bin]# 2010-06-21 12:25:23,738 - INFO [main:QuorumPeerConfig@80] - Reading configuration from: /root/zookeeper-3.2.2/bin/../conf/zoo.cfg 2010-06-21 12:25:23,743 - INFO [main:QuorumPeerConfig@232] - Defaulting to majority quorums 2010-06-21 12:25:23,745 - FATAL [main:QuorumPeerMain@82] - Invalid config, exiting abnormally org.apache.zookeeper.server.quorum.QuorumPeerConfig$ConfigException: Error processing /root/zookeeper-3.2.2/bin/../conf/zoo.cfg at org.apache.zookeeper.server.quorum.QuorumPeerConfig.parse(QuorumPeerConfig.java:100) at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:98) at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:75) Caused by: java.lang.IllegalArgumentException: /var/zookeeper/myid file is missing at org.apache.zookeeper.server.quorum.QuorumPeerConfig.parseProperties(QuorumPeerConfig.java:238) at org.apache.zookeeper.server.quorum.QuorumPeerConfig.parse(QuorumPeerConfig.java:96) ... 2 more Invalid config, exiting abnormally* And here is my config file: * # The number of milliseconds of each tick tickTime=2000 # The number of ticks that the initial # synchronization phase can take initLimit=5 # The number of ticks that can pass between # sending a request and getting an acknowledgement syncLimit=2 # the directory where the snapshot is stored. dataDir=/var/zookeeper # the port at which the clients will connect clientPort=2181 server.1=master1:2888:3888 server.2=slave2:2888:3888 server.3=slave3:2888:3888 * I'm a little confused as to why this doesn't work and I haven't had any luck finding answers to some questions I have. Am I supposed to have an instance of ZooKeeper on each node started before running in replication mode? Should I have each node that will be running ZK listed in the config file? Should I be using an IP address to point to a server instead of a hostname? Thanks for your time. Erik --0050450296258fcd2a04898ef991--