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 445151847A for ; Thu, 30 Apr 2015 20:53:42 +0000 (UTC) Received: (qmail 97014 invoked by uid 500); 30 Apr 2015 20:53:37 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 96926 invoked by uid 500); 30 Apr 2015 20:53:37 -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 96614 invoked by uid 99); 30 Apr 2015 20:53:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Apr 2015 20:53:37 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: message received from 54.164.171.186 which is an MX secondary for user@zookeeper.apache.org) Received: from [54.164.171.186] (HELO mx1-us-east.apache.org) (54.164.171.186) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Apr 2015 20:53:32 +0000 Received: from mail-qg0-f52.google.com (mail-qg0-f52.google.com [209.85.192.52]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 9C64F47359 for ; Thu, 30 Apr 2015 20:53:11 +0000 (UTC) Received: by qgej70 with SMTP id j70so30405030qge.2 for ; Thu, 30 Apr 2015 13:53:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=103NvSqFEaR0l3V5jMtyHP26cVksPUaUsS2CVEDafhA=; b=zMrT8G1TQ+XKinQvJdckK1BKSYjx1Ow6XQYwqxSeP5LqfqHuD9X/mPE+GtaeCvouJb XhSOR8bmCaC7NUpgYutSxMet88tM+jHKuPpUu0e309hmPzKHmGa0InibrVss2y5GdtzZ Eoipc1SVmzRqJitOed5xNAPjTDcTJmXY4wIXK8XQ2hinamYFBOgWIrCmbXm/OFGGZEC9 9ihI3OnLSJUZjWSH2IqIe2XLXZZ8iG6vHmLpK0Y4Zay3WsNxGMMDW+M50nm23PtGTgYF C5UMiFlOmbT8zXjiUZ2bVMcfjQSADv3KUllI7X8Tl8Q3Hvfl9NG55BPpxVZDH7xUE8q2 fJHw== X-Received: by 10.55.27.200 with SMTP id m69mr11078947qkh.11.1430427184985; Thu, 30 Apr 2015 13:53:04 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.252.4 with HTTP; Thu, 30 Apr 2015 13:52:44 -0700 (PDT) In-Reply-To: References: From: Alexander Shraer Date: Thu, 30 Apr 2015 13:52:44 -0700 Message-ID: Subject: Re: reconfig command in Zookeeper 3.5.0 Alpha To: "user@zookeeper.apache.org" Content-Type: multipart/alternative; boundary=001a113e9af23cfef30514f748cc X-Virus-Checked: Checked by ClamAV on apache.org --001a113e9af23cfef30514f748cc Content-Type: text/plain; charset=UTF-8 I think you have to add a client port at the end, like this: reconfig -add server.5=125.23.63.23:1234:1235;1236 On Thu, Apr 30, 2015 at 1:49 PM, Subodh Garg-SSI < subodh.garg@ssi.samsung.com> wrote: > I tried the following on server 2, but it fails with a different error. > > [zk: localhost:2181(CONNECTED) 0] config > server.1=10.3.1.130:2780:2782:participant > version=300000000 > [zk: localhost:2181(CONNECTED) 1] reconfig -add server.2=10.3.1.131:2780 > :2783 > KeeperErrorCode = BadArguments for > > Thanks, > Subodh > > > -----Original Message----- > From: Alexander Shraer [mailto:shralex@gmail.com] > Sent: Thursday, April 30, 2015 1:40 PM > To: user@zookeeper.apache.org > Subject: Re: reconfig command in Zookeeper 3.5.0 Alpha > > you should write " reconfig -add server.2=10.3.1.131:2780:2783" > not serverid=... > > On Thu, Apr 30, 2015 at 1:21 PM, Subodh Garg-SSI < > subodh.garg@ssi.samsung.com> wrote: > > > Hi Alex, > > > > I am still getting the same error. This time I started server 1 with > > following contents in dynamicConfigFile > > > > server.1=10.3.1.130:2780:2783 > > > > Then I started server 2 with the following contents in > > dynamicConfigFile as you suggested. > > > > server.1=10.3.1.130:2780:2783 > > server.2=10.3.1.131:2780:2783 > > > > After starting server 2, I see dynamic config file contents of server > > 2 change to that of server 1. > > > > The on server 1, I tried the following command using zkCli.sh > > > > reconfig -add serverId=10.3.1.131:2780:2783 > > > > But I still get the following error message. > > > > KeeperErrorCode = MarshallingError for > > > > Here is the output of zkCli.sh on server 1 > > > > [zk: localhost:2181(CONNECTED) 3] config > > server.1=10.3.1.130:2780:2783:participant > > version=200000000 > > [zk: localhost:2181(CONNECTED) 4] reconfig -add > > serverId=10.3.1.131:2780 > > :2783 > > KeeperErrorCode = MarshallingError for > > [zk: localhost:2181(CONNECTED) 5] . > > > > I tried the same command on server 2, but still I get the same result. > > Here is the output of zkCli.sh on server 2. > > > > [zk: localhost:2181(CONNECTED) 0] config > > server.1=10.3.1.130:2780:2783:participant > > version=200000000 > > [zk: localhost:2181(CONNECTED) 1] reconfig -add > > serverId=10.3.1.131:2780 > > :2783 > > KeeperErrorCode = MarshallingError for > > [zk: localhost:2181(CONNECTED) 2] > > > > Thanks, > > Subodh > > > > > > > > > > > > > > -----Original Message----- > > From: Alexander Shraer [mailto:shralex@gmail.com] > > Sent: Wednesday, April 29, 2015 7:17 PM > > To: user@zookeeper.apache.org > > Subject: Re: reconfig command in Zookeeper 3.5.0 Alpha > > > > Hi, > > > > Your initial config files are defining two ZooKeeper clusters of size 1. > > They are independent and will not try to connect. > > Instead, when defining the config of server 2 you should add both a > > line for server 1 and a line for server 2 (this is an invalid config, > > used just to initialize server 2). This way server 2 will try to connect > to server 1. > > Once connected to server 1, it will update its config file to the one > > at server 1 (since this is the valid current configuration). Then you > > can add server 2 using reconfig and both servers should have both of > > them in the config. > > > > On Wed, Apr 29, 2015 at 6:48 PM, Subodh Garg-SSI < > > subodh.garg@ssi.samsung.com> wrote: > > > > > Alex, > > > > > > I am running zkServer.sh on two servers with IP address as > > > 10.3.1.130 and 10.3.1.131. I declared standaloneEnabled=false in the > > > zoo.cfg file for each of the server. I also created a > "dynamicConfigFile=" > > > parameter in each server's static config file. In dynamic config > > > file for server 1, I added its own server's IP address entry as > > > server.1=10.3.1.130:2780:2783 for server1. In dynamic config file > > > for server 2, I added its own server's IP address entry as > > server.2=10.3.1.131:2780:2783. > > > > > > After starting Zookeeper server on two machines, I checked they both > > > got elected as LEADER. After that I ran zkCli.sh on server 1 and > > > tried to add server 2 in the following way, but I get "Marshalling > Error for". > > > > > > Is there any problem the way I am adding the server? > > > > > > Here is what it shows in zkCli.sh on each of the server. > > > > > > Server 1: > > > [zk: localhost:2181(CONNECTED) 8] config > > > server.1=10.3.1.130:2780:2783:participant > > > version=100000000 > > > [zk: localhost:2181(CONNECTED) 9] reconfig -add > > > serverId=10.3.1.131:2780 > > > :2783 > > > KeeperErrorCode = MarshallingError for > > > [zk: localhost:2181(CONNECTED) 10] > > > > > > Server 2: > > > [zk: localhost:2181(CONNECTED) 2] config > > > server.2=10.3.1.131:2780:2783:participant > > > version=100000000 > > > [zk: localhost:2181(CONNECTED) 3] > > > > > > Thanks > > > Subodh > > > > > > -----Original Message----- > > > From: Alexander Shraer [mailto:shralex@gmail.com] > > > Sent: Tuesday, April 28, 2015 11:23 AM > > > To: user@zookeeper.apache.org > > > Subject: Re: reconfig command in Zookeeper 3.5.0 Alpha > > > > > > That's the one., 3.5.0 alpha There is no stable 3.5.0 release, just > > > alpha releases for now. > > > > > > Alex > > > > > > On Tue, Apr 28, 2015 at 11:19 AM, Subodh Garg-SSI < > > > subodh.garg@ssi.samsung.com> wrote: > > > > > > > Hi Alex, > > > > > > > > Thanks for pointing me to the documentation for 3.5.0. Could you > > > > point me to the 3.5.0 code as well? > > > > > > > > I do not see the 3.5.0 release listed on the following page for > > > > downloading Zookeeper. > > > > > > > > http://zookeeper.apache.org/releases.html#download > > > > > > > > I could find only 3.5.0 Alpha release but not 3.5.0. > > > > > > > > > > > > Thanks > > > > Subodh > > > > > > > > > > > > -----Original Message----- > > > > From: Alexander Shraer [mailto:shralex@gmail.com] > > > > Sent: Saturday, April 25, 2015 10:28 PM > > > > To: user@zookeeper.apache.org > > > > Subject: Re: reconfig command in Zookeeper 3.5.0 Alpha > > > > > > > > Hi, > > > > > > > > The reconfig command is available in 3.5.0 - both in the CLI and > > > > as Java and C API. The documentation is available here: > > > > http://zookeeper.apache.org/doc/trunk/zookeeperReconfig.html > > > > > > > > Cheers, > > > > Alex > > > > > > > > On Thu, Apr 23, 2015 at 1:47 PM, Subodh Garg-SSI < > > > > subodh.garg@ssi.samsung.com> wrote: > > > > > > > > > Hi, > > > > > > > > > > I downloaded 3.5.0 Alpha release of Zookeeper. I was wondering > > > > > how Zookeeper is reconfigured if new server is added and old is > deleted. > > > > > The Zookeeper document (book) talks about it and how to use it > > > > > in release > > > > > 3.5.0 of Zookeeper. Could someone please tell me when that > > > > > feature is going to be available as I could not find "reconfig" > > > > > command in downloaded software package. > > > > > > > > > > Thanks, > > > > > Subodh > > > > > > > > > > > > > > > --001a113e9af23cfef30514f748cc--