Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 2F047200CC8 for ; Fri, 14 Jul 2017 21:45:51 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2D61116E555; Fri, 14 Jul 2017 19:45:51 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 53C3E16E553 for ; Fri, 14 Jul 2017 21:45:50 +0200 (CEST) Received: (qmail 93748 invoked by uid 500); 14 Jul 2017 19:45:47 -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 93735 invoked by uid 99); 14 Jul 2017 19:45:46 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Jul 2017 19:45:46 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 85E321A075D for ; Fri, 14 Jul 2017 19:45:46 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.639 X-Spam-Level: ** X-Spam-Status: No, score=2.639 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, T_KAM_HTML_FONT_INVALID=0.01] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id VC6WOpLLCWgS for ; Fri, 14 Jul 2017 19:45:44 +0000 (UTC) Received: from mail-qt0-f169.google.com (mail-qt0-f169.google.com [209.85.216.169]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 471205FDE4 for ; Fri, 14 Jul 2017 19:45:43 +0000 (UTC) Received: by mail-qt0-f169.google.com with SMTP id i2so70194521qta.3 for ; Fri, 14 Jul 2017 12:45:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=p+9B/ICr6XfHhecqGRn1/TPi0dBWnvlEJ0rZH5o+fNo=; b=BpoWL/WiWeqXouBtU6q7/cNuMPlGTxK28StWAr9lPNRxHeU70cCYatKDJYew5/m7Wr 79fMU0IOEGbyELnrVfOQJtARLU2+oZCcp48w0Ux8norphGblhHOMvNORnYEc1leR7UtI 2Q5fA0RAVXz6bdDWFYphrcgVfhXFU8x7FdN07zcRJkgRmhjQ/53CTrcxd3T3srkEXnIH 7qhRxtoG0nI/bWl37DmgUvJpoeuk0Jtev7ys9FHJWrcMSK13e73ElazBbv0YXCW/5F46 MIxVM5ANjNpQBwsJbfbgurPfWORjZB2NMKMHnL5elhiCqU08BtKe0pnsRj9TvMgu194j Q8TQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=p+9B/ICr6XfHhecqGRn1/TPi0dBWnvlEJ0rZH5o+fNo=; b=KU71pCkIqlv/kho4WqMKVAm38GT0/LUlI65R3+VAVgArtXgZRt/OXfApNeD+ZGiTia ueBeZ5UFp8geEDcuBtrBlTcQQlQGVHlM85Qwoq8bjDoN+ARnczWe5x4S6sjI+/bhHmOp DYMXjs5S4+zdDV8IIBU9lPS0NxdArfW6rGO7sym53YzlLQkHCrBsO1fQhAAwr23al3gA iI3ULP/WPhlI86l4lOaEk1NCaUalrrPa3tvacqaesIrkejNS879nrSjeGhTn3/m4e9pq rNeSpkwP7Y+ruXmOidsBglztWG97ad1s0l7oPL48hJbnOTDEIquKy8L3Wy91lVzMPxlr E1LA== X-Gm-Message-State: AIVw110EntDSCjCpK5nn9qrROcuvQkdmSzn3eze7JqwQ4eHmzGSxJFWr pJL0NHJ3D7IxXMnpd0UjAVVPEIGdB2t9weQ= X-Received: by 10.237.63.245 with SMTP id w50mr14420912qth.135.1500061542928; Fri, 14 Jul 2017 12:45:42 -0700 (PDT) MIME-Version: 1.0 Received: by 10.237.52.67 with HTTP; Fri, 14 Jul 2017 12:45:42 -0700 (PDT) In-Reply-To: References: From: Luigi Tagliamonte Date: Fri, 14 Jul 2017 12:45:42 -0700 Message-ID: Subject: Re: gracefully remove a node from the ensamble To: user@zookeeper.apache.org Content-Type: multipart/alternative; boundary="001a1144e77868573505544c4b55" archived-at: Fri, 14 Jul 2017 19:45:51 -0000 --001a1144e77868573505544c4b55 Content-Type: text/plain; charset="UTF-8" Thank Alexander, I'm giving a shot to 3.5.3. I have 2 servers, the first one has: -zoo.cfg : tickTime=2000 initLimit=10 syncLimit=5 dataDir=/var/lib/zookeeper/data reconfigEnabled=true standaloneEnabled=false dynamicConfigFile=/etc/zookeeper/bin/conf/zoo_replicated1.cfg.dynamic -zoo_replicated1.cfg.dynamic: server.1=zook.mydomain.com:2888:3888 - myid: 1 On the second server I'm using the same zoo.cfg and zoo_replicated1.cfg.dynamic and I only changed the id to 2. I'm getting the following in the logs: 2017-07-14 19:43:25,515 - INFO [main:QuorumPeerConfig@117] - Reading configuration from: /etc/zookeeper/zoo.cfg 2017-07-14 19:43:25,518 - INFO [main:QuorumPeerConfig@317] - clientPort is not set 2017-07-14 19:43:25,519 - INFO [main:QuorumPeerConfig@331] - secureClientPort is not set 2017-07-14 19:43:25,579 - WARN [main:QuorumPeerConfig@590] - No server failure will be tolerated. You need at least 3 servers. 2017-07-14 19:43:25,583 - INFO [main:DatadirCleanupManager@78] - autopurge.snapRetainCount set to 3 2017-07-14 19:43:25,583 - INFO [main:DatadirCleanupManager@79] - autopurge.purgeInterval set to 0 2017-07-14 19:43:25,583 - INFO [main:DatadirCleanupManager@101] - Purge task is not scheduled. 2017-07-14 19:43:25,584 - INFO [main:ManagedUtil@46] - Log4j found with jmx enabled. 2017-07-14 19:43:25,594 - INFO [main:QuorumPeerMain@138] - Starting quorum peer 2017-07-14 19:43:25,617 - INFO [main:Log@186] - Logging initialized @388ms 2017-07-14 19:43:25,661 - WARN [main:ContextHandler@1339] - o.e.j.s.ServletContextHandler@6d78f375{/,null,null} contextPath ends with /* 2017-07-14 19:43:25,661 - WARN [main:ContextHandler@1350] - Empty contextPath 2017-07-14 19:43:25,673 - INFO [main:QuorumPeer@1349] - Local sessions disabled 2017-07-14 19:43:25,673 - INFO [main:QuorumPeer@1360] - Local session upgrading disabled 2017-07-14 19:43:25,673 - INFO [main:QuorumPeer@1327] - tickTime set to 2000 2017-07-14 19:43:25,673 - INFO [main:QuorumPeer@1371] - minSessionTimeout set to 4000 2017-07-14 19:43:25,674 - INFO [main:QuorumPeer@1382] - maxSessionTimeout set to 40000 2017-07-14 19:43:25,674 - INFO [main:QuorumPeer@1397] - initLimit set to 10 2017-07-14 19:43:25,685 - ERROR [main:QuorumPeerMain@98] - Unexpected exception, exiting abnormally java.lang.RuntimeException: My id 2 not in the peer list at org.apache.zookeeper.server.quorum.QuorumPeer.start(QuorumPeer.java:770) at org.apache.zookeeper.server.quorum.QuorumPeerMain.runFromConfig(QuorumPeerMain.java:185) at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:120) at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:79) What am I doing wrong? should the second server reach the first one, get the list of the other server in the ensemble and join it? Or I have to implement an automation on top of this? Regards L. On Fri, Jul 14, 2017 at 11:07 AM, Alexander Shraer wrote: > I'd suggest to use 3.5.3. ZK only officially supports a Java and C client > as far as I know. I know these two support it, > not sure if anyone ported it to other clients. > > Alex > > > On Fri, Jul 14, 2017 at 11:04 AM, Luigi Tagliamonte < > luigi.tagliamonte86@gmail.com> wrote: > > > Hello again Alexander, > > so only Java and C clients support the new zk node discovery? right? > > Is there any specific version to use to be able to use this feature? > > Regards > > L. > > > > On Fri, Jul 14, 2017 at 10:37 AM, Luigi Tagliamonte < > > luigi.tagliamonte86@gmail.com> wrote: > > > > > Hello Alexander, > > > thank you for the link I read the comment and the white paper and it > > seems > > > really promising. > > > I found though that Kafka isn't able yet to automatically reconfigure > his > > > zk nodes list.. do you happen to know different? > > > Regards > > > L. > > > > > > --001a1144e77868573505544c4b55--