From user-return-11781-archive-asf-public=cust-asf.ponee.io@zookeeper.apache.org Fri Nov 30 19:42:53 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 01DFD180671 for ; Fri, 30 Nov 2018 19:42:52 +0100 (CET) Received: (qmail 28243 invoked by uid 500); 30 Nov 2018 18:42:51 -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 28232 invoked by uid 500); 30 Nov 2018 18:42:51 -0000 Delivered-To: apmail-hadoop-zookeeper-user@hadoop.apache.org Received: (qmail 28229 invoked by uid 99); 30 Nov 2018 18:42:51 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Nov 2018 18:42:51 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id A3761C22B2 for ; Fri, 30 Nov 2018 18:42:50 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4.485 X-Spam-Level: **** X-Spam-Status: No, score=4.485 tagged_above=-999 required=6.31 tests=[DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_SOFTFAIL=0.972, URI_HEX=1.313] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id lD9yRUcu8xBz for ; Fri, 30 Nov 2018 18:42:49 +0000 (UTC) Received: from n2.nabble.com (n2.nabble.com [162.253.133.85]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 5489461084 for ; Fri, 30 Nov 2018 18:42:49 +0000 (UTC) Received: from n2.nabble.com (localhost [127.0.0.1]) by n2.nabble.com (Postfix) with ESMTP id E627063916B2 for ; Fri, 30 Nov 2018 11:42:42 -0700 (MST) Date: Fri, 30 Nov 2018 11:42:42 -0700 (MST) From: ilango dhandapani To: zookeeper-user@hadoop.apache.org Message-ID: <1543603362899-0.post@n2.nabble.com> Subject: Zookeeper StandAlone to ensemble MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit ZooKeeper version is zookeeper-3.4.6.2.2.4.5-1.jar. Apache solr 5.3 is the distributed one working with zookeeper. 1. Using a stand alone zookeeper in QA and below is the zoo.cfg file clientPort=2181 initLimit=10 autopurge.purgeInterval=12 syncLimit=5 tickTime=2000 dataDir=/var/zookeeper/data autopurge.snapRetainCount=3 server.1=server1.homedepot.com:2888:3888 maxClientCnxns=512 2. $ ./zkServer.sh status JMX enabled by default Using config: /usr/hdp/current/zookeeper-server/bin/../conf/zoo.cfg Mode: standalone 3. Want to add 2 more servers and make this an ensemble. 4. what I tried is, a. Copied all data folder and zookeper installation folder from server1 and moved to server2. b. Edited zoo.cfg file in both server1 and server2, added "server.2=server2.homedepot.com:2888:3888" c. edited myid file as 2 in server2. d. Tried starting zookeeeper in server2, it says started but actaully no process was running. And zookeeper stops working at this point and I need to back out the changes to zoo.cfg on server1 and restart zookeeper. e. Since zookeeper was installed under /usr/hdp in server1, i wanted to use separate filesystems on server2. So created separate filesystems for zeekeeper install, data etc. datadir was /var/zookeeper/data in server1 and /opt/zookeeper/data in server2. 4. Also wondering how to change from stand alone to ensemble. 5. I understand that i need to refer the solr node to new zookeeper node after zookeeper is up in server2. bin/solr start -e cloud -z server1,server2:2181 -noprompt Please help. -- Sent from: http://zookeeper-user.578899.n2.nabble.com/