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 8A76F100A8 for ; Thu, 12 Sep 2013 11:56:58 +0000 (UTC) Received: (qmail 68183 invoked by uid 500); 12 Sep 2013 11:56:57 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 68019 invoked by uid 500); 12 Sep 2013 11:56:57 -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 67780 invoked by uid 99); 12 Sep 2013 11:56:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Sep 2013 11:56:56 +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 (athena.apache.org: domain of bs4mailinglist@gmail.com designates 74.125.83.50 as permitted sender) Received: from [74.125.83.50] (HELO mail-ee0-f50.google.com) (74.125.83.50) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Sep 2013 11:56:51 +0000 Received: by mail-ee0-f50.google.com with SMTP id d51so5220852eek.23 for ; Thu, 12 Sep 2013 04:56:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=vv342GhEnDui1H2cbTNTyV9+GzPpwOkLR74yKL70l6c=; b=hPc+C0g4AGHSPbpBd6vS8N3v1ECd+nnDDAivF05WzyPcPz3vrkEI+a4aq94vwvGMHR 3Kimzg+rIvc6XRLYj5nzPDRfkrfsxiL0Ms8HNA5jJPVylksLxoDM29/YP7wGESd/eWAQ T3Uz7KQLcImZI57gCX4FhKQl8vaYtB4qo5oNHBAZy8CuHxpEuatMHXcpfx2/9dx6jUT+ J5T1CfftPOZJUVSlZPPAyXeSVEHY58+gBvTxTwxVI2JY+pHNVPaUDJoSDD5tXYF80N8J o0+1ew0ZctPYIXCdTJio/Vsmtr1S0Yjn7311qv7mpX5/CmfNx1C0j+yZO02EdRoKaUIA BXlg== MIME-Version: 1.0 X-Received: by 10.14.207.4 with SMTP id m4mr1965079eeo.78.1378986990786; Thu, 12 Sep 2013 04:56:30 -0700 (PDT) Received: by 10.14.144.66 with HTTP; Thu, 12 Sep 2013 04:56:30 -0700 (PDT) In-Reply-To: References: Date: Thu, 12 Sep 2013 14:56:30 +0300 Message-ID: Subject: Re: Starting a distributed env of ZK From: Sznajder ForMailingList To: user@zookeeper.apache.org Content-Type: multipart/alternative; boundary=047d7b343ff4bc7c0a04e62e6d4c X-Virus-Checked: Checked by ClamAV on apache.org --047d7b343ff4bc7c0a04e62e6d4c Content-Type: text/plain; charset=ISO-8859-1 Hi Thank you for your answer. Indeed, I would like to use a quorum of instances. In this case: 1 - should I start ZK on each one of the servers? 2 - Starting ZK is done via zkServer.sh or via the command line java -cp zookeeper.jar:lib/slf4j-api-1. 6.1.jar:lib/ slf4j-log4j12-1.6.1.jar:lib/log4j-1.2.15.jar:conf \ org.apache.zookeeper.server.quorum.QuorumPeerMain zoo.cfg Thanks again! On Thu, Sep 12, 2013 at 2:40 PM, Rakesh R wrote: > Hi Sznajder, > > >> 1 - In case of distributed env of ZK, should I start ZK on each one of > the servers? Or only in the master? > > It all depends on the tolerated failures in the system and if ZK server > goes down, what would be the impact on your application. In case of Single > node ZooKeeper server, it will be the Single Point of Contact. > > The advantage of having ZooKeeper quorum of instances is, your system will > be able to run even if few ZooKeeper server fails. > > Please see more about ZooKeeper quorum at: > > > http://zookeeper.apache.org/doc/trunk/zookeeperStarted.html#sc_RunningReplicatedZooKeeper > > > > >>>>>2 - Is it OK to start the server via "bin/zkServer.sh start " or > should I use the long command line: > java -cp zookeeper.jar:lib/slf4j-api-1.6.1.jar:lib/ > slf4j-log4j12-1.6.1.jar:lib/log4j-1.2.15.jar:conf \ > org.apache.zookeeper.server.quorum.QuorumPeerMain zoo.cfg > > I'll suggest to use the script bin/zkServer.sh start and this is pretty > simple. > > Please see this section, it will be helpful to setup single node. > > > http://zookeeper.apache.org/doc/trunk/zookeeperStarted.html#sc_InstallingSingleMode > > -Rakesh > > -----Original Message----- > From: Sznajder ForMailingList [mailto:bs4mailinglist@gmail.com] > Sent: 12 September 2013 16:01 > To: user@zookeeper.apache.org > Subject: Starting a distributed env of ZK > > Hi > > Two questions: > > 1 - In case of distributed env of ZK, should I start ZK on each one of > the servers? Or only in the master? > > 2 - Is it OK to start the server via "bin/zkServer.sh start " or should I > use the long command line: > java -cp zookeeper.jar:lib/slf4j-api-1.6.1.jar:lib/ > slf4j-log4j12-1.6.1.jar:lib/log4j-1.2.15.jar:conf \ > org.apache.zookeeper.server.quorum.QuorumPeerMain zoo.cfg > > > > Thanks! > --047d7b343ff4bc7c0a04e62e6d4c--