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 A4757F370 for ; Fri, 31 May 2013 01:57:19 +0000 (UTC) Received: (qmail 7895 invoked by uid 500); 31 May 2013 01:57:18 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 7863 invoked by uid 500); 31 May 2013 01:57:18 -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 7855 invoked by uid 99); 31 May 2013 01:57:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 May 2013 01:57:18 +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 (nike.apache.org: domain of nathaniel@circos.com designates 209.85.160.45 as permitted sender) Received: from [209.85.160.45] (HELO mail-pb0-f45.google.com) (209.85.160.45) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 May 2013 01:57:11 +0000 Received: by mail-pb0-f45.google.com with SMTP id mc17so1380550pbc.4 for ; Thu, 30 May 2013 18:56:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:x-gm-message-state; bh=uuZfbkQiQlxB4OVqLfGZSMftUurTDHWSgjAAJzvPTXU=; b=cI3ccZP/T/hqk8UGKMy4+62NR9yOjJP4fKoQr7LVrdqVE1qNCzm5EoD5sAS75dOSKa dxK51vM4Sg6XNAuqg5yYFA+OHlIxdJCsR1lNFXGrt4yCZrQIfuBIyN8LimkuHRq/9rCw 0EFov2tePshPBXdl9InxLqtJ4XjOiGzCuXlDRr13hOFVQVwWcVc89AMFyWeVB8HjLHz2 aJHfaigE/kMessiptFD3bf4iAypfnk9LPW8Gz8xEdcExdJiXRaycZmfnMGF4iU8ejmkm gVABRatXanup2SjBBw1Lft1Hs4VFINi0MVJ8RX/L9Ud+Y4l5jsxWGEn+vFTYszmnNfsr 5UfQ== X-Received: by 10.66.8.69 with SMTP id p5mr11280973paa.57.1369965409764; Thu, 30 May 2013 18:56:49 -0700 (PDT) MIME-Version: 1.0 Received: by 10.70.52.6 with HTTP; Thu, 30 May 2013 18:56:29 -0700 (PDT) In-Reply-To: References: From: Nathaniel Domingo Date: Fri, 31 May 2013 09:56:29 +0800 Message-ID: Subject: Re: safely upgrade single instance to ensemble To: user Content-Type: multipart/alternative; boundary=bcaec51f97b59a9d7204ddf9edf7 X-Gm-Message-State: ALoCoQlYtopU3+Gzzw7+qae8a6QN/VNEKbhJEs9aQG6H+HGww1g+TR6ns+30aThX3Ttb4zm0Mk6F X-Virus-Checked: Checked by ClamAV on apache.org --bcaec51f97b59a9d7204ddf9edf7 Content-Type: text/plain; charset=ISO-8859-1 thanks for all your help. i successfully upgraded my zookeeper to an ensemble. what i did is updated the configuration and restarted the first node. then launched one node. then launched another node. i think the thing to remember is to launch the original node first so that its data would be copied to the other nodes. On Wed, May 29, 2013 at 11:29 PM, kishore g wrote: > Are you ok with shutting down zookeeper and clients ? If yes, then > > 1. shutdown existing zookeeper > 2. copy zookeeper data and translog directory new locations > 3. change the zoo.config on each server to include all 3 servers. see > ( > http://zookeeper.apache.org/doc/r3.2.2/zookeeperStarted.html#sc_RunningReplicatedZooKeeper > ) > > Start the servers, change your clients to use all > zk1:port1,zk2:port2,zk3:port3 in the connect string. > > thanks, > Kishore G > > On Wed, May 29, 2013 at 2:54 AM, Kuba Lekstan wrote: > > Nothing bad should happen as long as you start your current ZK instance > > before other. > > > > BTW: Before doing the change in production environment do some tests. > > > > > > 2013/5/29 Nathaniel Domingo > > > >> not existing cluster. zookeeper operating in standalone mode. i need to > >> convert it into a cluster for redundancy. > >> > >> > >> On Wed, May 29, 2013 at 4:34 PM, Kuba Lekstan > wrote: > >> > >> > Hello, > >> > > >> > If you want to just add one ZK node to existing cluster the easier and > >> > safest way would be to do a rolling restart. > >> > > >> > Kuba. > >> > > >> > > >> > 2013/5/29 Nathaniel Domingo > >> > > >> > > Hi, > >> > > > >> > > What do you think is the safest way of upgrading a single instance > >> > > zookeeper to an ensemble? The goal is not to loose any data. > >> > > > >> > > Regards, > >> > > Nathaniel > >> > > > >> > > >> > --bcaec51f97b59a9d7204ddf9edf7--