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 7DF6310315 for ; Sat, 19 Jul 2014 02:14:47 +0000 (UTC) Received: (qmail 60575 invoked by uid 500); 19 Jul 2014 02:14:46 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 60528 invoked by uid 500); 19 Jul 2014 02:14:46 -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 60507 invoked by uid 99); 19 Jul 2014 02:14:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 19 Jul 2014 02:14:46 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mutsuzaki@gmail.com designates 209.85.219.42 as permitted sender) Received: from [209.85.219.42] (HELO mail-oa0-f42.google.com) (209.85.219.42) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 19 Jul 2014 02:14:40 +0000 Received: by mail-oa0-f42.google.com with SMTP id n16so4498039oag.15 for ; Fri, 18 Jul 2014 19:14:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date:message-id :subject:from:to:content-type:content-transfer-encoding; bh=xtXJ6yjexlV8RAZ3K9vS88k7Hcw9rYmThrYh6PoYF4Q=; b=T1xmRHvyl1xvhvYHQigjn+GdjFcpOj/vg1HhkHeaik2tPU8yXlw8J0+ojllhVb8jzu ZOAcrbUP0zTW/hG/y44guequObUeaDZ3i1nFFpyqjL8M7gcLpY3mSeHMS63Q4GjZ1vPo tTNlKpBwg79YBg/IKFjujUeNqW3Wm1/ADxmWb+JAjhgp4ePbtBJGL1/14ItxHq2ftJCA zp4mJwW5MwT2MNzBM551SRdF9d6iggOR3Q6ToWDfFBfIgc09lEaSsT/9tMAPFAfNdLOx zQs90DfIXvUi4vQYYuWy1M3eMtVaLwrECO0dlkhJ9sACc3j3RqO0Mhv2pjsTJaeV+PxZ mUKw== MIME-Version: 1.0 X-Received: by 10.182.204.102 with SMTP id kx6mr12786752obc.16.1405736060118; Fri, 18 Jul 2014 19:14:20 -0700 (PDT) Reply-To: michi@cs.stanford.edu Sender: mutsuzaki@gmail.com Received: by 10.202.212.86 with HTTP; Fri, 18 Jul 2014 19:14:20 -0700 (PDT) In-Reply-To: References: Date: Fri, 18 Jul 2014 19:14:20 -0700 X-Google-Sender-Auth: zjfdJUZzJ_7q7XVZ69AL53jtyXM Message-ID: Subject: Re: Setting up a single Zookeeper instance and the binding fails From: Michi Mutsuzaki To: "user@zookeeper.apache.org" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org You don't need this line for standalone zookeeper: server.1=3Dlocalhost:2888:3888 On Fri, Jul 18, 2014 at 2:58 PM, S.L wrote: > I am trying to set up a single zookeeper instance using the configuration > below , however the start log indicates that the zookeeper is halting whi= le > trying to bind the port 2181.Can some one please let me know the issue > here. Thank you. > > *Start up Log;* > > 2014-07-18 16:00:48,976 [myid:] - INFO > [main:QuorumPeerConfig@103] - Reading configuration from: > /opt/zookeeper/bin/../conf/zoo.cfg > 2014-07-18 16:00:48,980 [myid:] - ERROR [main:QuorumPeerConfig@289] - > Invalid configuration, only one server specified (ignoring) > 2014-07-18 16:00:48,982 [myid:] - INFO > [main:DatadirCleanupManager@78] - autopurge.snapRetainCount set to 3 > 2014-07-18 16:00:48,982 [myid:] - INFO > [main:DatadirCleanupManager@79] - autopurge.purgeInterval set to 0 > 2014-07-18 16:00:48,983 [myid:] - INFO > [main:DatadirCleanupManager@101] - Purge task is not scheduled. > 2014-07-18 16:00:48,983 [myid:] - WARN [main:QuorumPeerMain@113] - > Either no config or no quorum defined in config, running in > standalone mode > 2014-07-18 16:00:48,997 [myid:] - INFO [main:QuorumPeerConfig@103] - > Reading configuration from: /opt/zookeeper/bin/../conf/zoo.cfg > 2014-07-18 16:00:48,998 [myid:] - ***ERROR*** > [main:QuorumPeerConfig@289] - Invalid configuration, only one server > specified (ignoring) > 2014-07-18 16:00:48,998 [myid:] - INFO [main:ZooKeeperServerMain@95] > - Starting server > 2014-07-18 16:00:49,007 [myid:] - INFO [main:Environment@100] - > Server environment:zookeeper.version=3D3.4.6-1569965, built on > 02/20/2014 09:09 GMT > 2014-07-18 16:00:49,007 [myid:] - INFO [main:Environment@100] - > Server environment:host.name=3D > 2014-07-18 16:00:49,007 [myid:] - INFO [main:Environment@100] - > Server environment:java.version=3D1.7.0_51 > 2014-07-18 16:00:49,007 [myid:] - INFO [main:Environment@100] - > Server environment:java.vendor=3DOracle Corporation > 2014-07-18 16:00:49,007 [myid:] - INFO [main:Environment@100] - > Server environment:java.home=3D/usr/java/jdk1.7.0_51/jre > 2014-07-18 16:00:49,007 [myid:] - INFO [main:Environment@100] - > Server environment:java.class.path=3D/opt/zookeeper/bin/../build/classes:= /opt/zookeeper/bin/../build/lib/*.jar:/opt/zookeeper/bin/../lib/slf4j-log4j= 12-1.6.1.jar:/opt/zookeeper/bin/../lib/slf4j-api-1.6.1.jar:/opt/zookeeper/b= in/../lib/netty-3.7.0.Final.jar:/opt/zookeeper/bin/../lib/log4j-1.2.16.jar:= /opt/zookeeper/bin/../lib/jline-0.9.94.jar:/opt/zookeeper/bin/../zookeeper-= 3.4.6.jar:/opt/zookeeper/bin/../src/java/lib/*.jar:/opt/zookeeper/bin/../co= nf: > 2014-07-18 16:00:49,008 [myid:] - INFO [main:Environment@100] - > Server environment:java.library.path=3D/usr/java/packages/lib/amd64:/usr/= lib64:/lib64:/lib:/usr/lib > 2014-07-18 16:00:49,010 [myid:] - INFO [main:Environment@100] - > Server environment:java.io.tmpdir=3D/tmp > 2014-07-18 16:00:49,010 [myid:] - INFO [main:Environment@100] - > Server environment:java.compiler=3D > 2014-07-18 16:00:49,010 [myid:] - INFO [main:Environment@100] - > Server environment:os.name=3DLinux > 2014-07-18 16:00:49,010 [myid:] - INFO [main:Environment@100] - > Server environment:os.arch=3Damd64 > 2014-07-18 16:00:49,011 [myid:] - INFO [main:Environment@100] - > Server environment:os.version=3D3.10.0-123.4.2.el7.x86_64 > 2014-07-18 16:00:49,011 [myid:] - INFO [main:Environment@100] - > Server environment:user.name=3Droot > 2014-07-18 16:00:49,011 [myid:] - INFO [main:Environment@100] - > Server environment:user.home=3D/root > 2014-07-18 16:00:49,011 [myid:] - INFO [main:Environment@100] - > Server environment:user.dir=3D/opt/zookeeper/bin > 2014-07-18 16:00:49,018 [myid:] - INFO [main:ZooKeeperServer@755] - > tickTime set to 2000 > 2014-07-18 16:00:49,018 [myid:] - INFO [main:ZooKeeperServer@764] - > minSessionTimeout set to -1 > 2014-07-18 16:00:49,018 [myid:] - INFO [main:ZooKeeperServer@773] - > maxSessionTimeout set to -1 > 2014-07-18 16:00:49,029 [myid:] - INFO [main:NIOServerCnxnFactory@94] > - binding to port 0.0.0.0/0.0.0.0:2181 > > *Zookeeper Config File.* > > # 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. > # do not use /tmp for storage, /tmp here is just > # example sakes. > dataDir=3D/opt/zookeeper/data > # the port at which the clients will connect > clientPort=3D2181 > #log directory. > dataLogDir=3D/opt/zookeeper/log > > server.1=3Dlocalhost:2888:3888 > > # the maximum number of client connections. > # increase this if you need to handle more clients > #maxClientCnxns=3D60 > # > # Be sure to read the maintenance section of the > # administrator guide before turning on autopurge. > # > # http://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_maintena= nce > # > # The number of snapshots to retain in dataDir > #autopurge.snapRetainCount=3D3 > # Purge task interval in hours > # Set to "0" to disable auto purge feature > #autopurge.purgeInterval=3D1