Return-Path: Delivered-To: apmail-hadoop-zookeeper-user-archive@minotaur.apache.org Received: (qmail 2733 invoked from network); 21 Jul 2010 18:01:09 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 21 Jul 2010 18:01:09 -0000 Received: (qmail 12562 invoked by uid 500); 21 Jul 2010 18:01:09 -0000 Delivered-To: apmail-hadoop-zookeeper-user-archive@hadoop.apache.org Received: (qmail 12456 invoked by uid 500); 21 Jul 2010 18:01:08 -0000 Mailing-List: contact zookeeper-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: zookeeper-user@hadoop.apache.org Delivered-To: mailing list zookeeper-user@hadoop.apache.org Received: (qmail 12448 invoked by uid 99); 21 Jul 2010 18:01:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Jul 2010 18:01:08 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ted.dunning@gmail.com designates 209.85.216.169 as permitted sender) Received: from [209.85.216.169] (HELO mail-qy0-f169.google.com) (209.85.216.169) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Jul 2010 18:01:01 +0000 Received: by qyk32 with SMTP id 32so3911809qyk.14 for ; Wed, 21 Jul 2010 10:59:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type; bh=ohxGWRsbHIke5IxuMxDSVtqLtFJU5oOaV47477IClMA=; b=bWxDCbsaXOmq8MK2U2WrXybag246srETZJYL5v1taUgijfNCaxVP++zL8oDLycULmU svCqdFRk5AJa6pPHlDenL6bzXrjwmVZ3VHqdZh0uKirYkX8nx7v9wLUSr5cP+K/ZGZ7i Ybi6MdKitbkKfvX4+OlmsUy7sd9kdg/+AjOpg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=NynjENjkS+R42ZCrQCcHelbdQZcA5O7yidC7rd617uZklYVzKMhi3/nTyihYkqLwgg HMCGNEbmNr1E6U0ilhORQ93jBiFUt9f/cST8McXSORNxzJkxPpPmBscdlxdNlcvXclig C23ZjG7OmPlSKW+m8thrfPrrr7l/XsmxSILIQ= Received: by 10.224.103.2 with SMTP id i2mr410038qao.192.1279735180201; Wed, 21 Jul 2010 10:59:40 -0700 (PDT) MIME-Version: 1.0 Received: by 10.224.3.7 with HTTP; Wed, 21 Jul 2010 10:59:19 -0700 (PDT) In-Reply-To: References: From: Ted Dunning Date: Wed, 21 Jul 2010 10:59:19 -0700 Message-ID: Subject: Re: Adding observers To: zookeeper-user@hadoop.apache.org Content-Type: multipart/alternative; boundary=000feaf0130cd28fbd048be990e3 X-Virus-Checked: Checked by ClamAV on apache.org --000feaf0130cd28fbd048be990e3 Content-Type: text/plain; charset=UTF-8 It is really simpler than you can imagine. Something like this should be plenty sufficient. for h in ZK_HOSTS do ssh $h $ZK_HOME/bin/zkServer.sh restart sleep 5 done This is just something I typed in, not something I checked. It is intended to give you the idea. I will leave it to you to fix my silly errors. :-) Note that you probably don't need to do this to the observers since they don't need to know about other observers. On Wed, Jul 21, 2010 at 10:48 AM, Avinash Lakshman < avinash.lakshman@gmail.com> wrote: > Any example scripts for the rolling restart technique that anyone would be > kind enough to share? > > --000feaf0130cd28fbd048be990e3--