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 20AAA7AD2 for ; Fri, 2 Dec 2011 01:11:36 +0000 (UTC) Received: (qmail 25844 invoked by uid 500); 2 Dec 2011 01:11:35 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 25813 invoked by uid 500); 2 Dec 2011 01:11:35 -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 25805 invoked by uid 99); 2 Dec 2011 01:11:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Dec 2011 01:11:35 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of nileader@gmail.com designates 209.85.212.42 as permitted sender) Received: from [209.85.212.42] (HELO mail-vw0-f42.google.com) (209.85.212.42) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Dec 2011 01:11:29 +0000 Received: by vbbfd1 with SMTP id fd1so2041381vbb.15 for ; Thu, 01 Dec 2011 17:11:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=L6Oo/b0TwQcPSZPZry793W76WSC/4Ky3HTs2cRLDbSU=; b=bfIXS4UGMOJgasIBK38uI6LWc/Eh04gbILa472DI4EO2iRf+eVrzONsJNWuG4HSV2N AaLnuvUP55DMJ0r8aGO034H6V1kSQopBVkwN+IdV2ci97l8jtfkpnAy2Z+rTCOmptYYW L6dKJkvpKzJKbCAi5cZkdCbnhGFpG5f+syLPs= Received: by 10.52.65.102 with SMTP id w6mr7907682vds.129.1322788268365; Thu, 01 Dec 2011 17:11:08 -0800 (PST) MIME-Version: 1.0 Received: by 10.52.157.106 with HTTP; Thu, 1 Dec 2011 17:10:27 -0800 (PST) In-Reply-To: References: From: nileader Date: Fri, 2 Dec 2011 09:10:27 +0800 Message-ID: Subject: Re: Invalid config To: user@zookeeper.apache.org Content-Type: multipart/alternative; boundary=20cf307f3b06d955ff04b311a45e --20cf307f3b06d955ff04b311a45e Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Did you put you zoo.cfg in the %ZOOKEEPER-HOME%/conf/ ? Or did you rename you zoo-***.cfg to zoo.cfg? 2011/12/2 Ren=C3=A9 Weinert > Hi! > > I tried to set up Zookeeper for the first time with the following request > and error: > > ubuntu@ubuntu:~/zookeeper-3.3.3$ java -cp > zookeeper-3.3.3.jar:lib/log4j-1.2.15.jar:conf > org.apache.zookeeper.server.quorum.QuorumPeerMain zoo.cfg > 2011-12-01 20:13:42,733 - INFO [main:QuorumPeerConfig@90] - Reading > configuration from: zoo.cfg > 2011-12-01 20:13:42,736 - FATAL [main:QuorumPeerMain@83] - Invalid config= , > exiting abnormally > org.apache.zookeeper.server.quorum.QuorumPeerConfig$ConfigException: Erro= r > processing zoo.cfg > at > > org.apache.zookeeper.server.quorum.QuorumPeerConfig.parse(QuorumPeerConfi= g.j > ava:110) > at > > org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(Quorum= Pee > rMain.java:99) > at > > org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.jav= a:7 > 6) > Caused by: java.lang.IllegalArgumentException: zoo.cfg file is missing > at > > org.apache.zookeeper.server.quorum.QuorumPeerConfig.parse(QuorumPeerConfi= g.j > ava:94) > ... 2 more > Invalid config, exiting abnormally > > > My config file (zookeeper/confi/zoo.cfg) is: > > > # The number of milliseconds of each tick > tickTime=3D2000 > # The number of ticks that the initial > # synchronization phase can take > initLimit=3D10 > # The number of ticks that can pass between > # sending a request and getting an acknowledgement > syncLimit=3D5 > # the directory where the snapshot is stored. > dataDir=3D/data > # the port at which the clients will connect > clientPort=3D2181 > > server.1=3DXXX.XXX.XXX.91:2888:3888 > server.2=3DXXX.XXX.XXX.92:2888:3888 > server.3=3DXXX.XXX.XXX.93:2888:3888 > > > and I have a file called "myid" (with the content "1") in the directory > "zookeeper/data". > > > > Can you tell me what I have to change in order for it to work? > > > Thanks! > Ren=C3=A9 > > --20cf307f3b06d955ff04b311a45e--