Return-Path: Delivered-To: apmail-hadoop-zookeeper-user-archive@minotaur.apache.org Received: (qmail 10429 invoked from network); 26 Mar 2010 17:15:53 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 26 Mar 2010 17:15:53 -0000 Received: (qmail 81835 invoked by uid 500); 26 Mar 2010 17:15:52 -0000 Delivered-To: apmail-hadoop-zookeeper-user-archive@hadoop.apache.org Received: (qmail 81810 invoked by uid 500); 26 Mar 2010 17:15:52 -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 81802 invoked by uid 99); 26 Mar 2010 17:15:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Mar 2010 17:15:52 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [74.125.82.48] (HELO mail-ww0-f48.google.com) (74.125.82.48) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Mar 2010 17:15:45 +0000 Received: by wwi18 with SMTP id 18so1493341wwi.35 for ; Fri, 26 Mar 2010 10:15:25 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.62.147 with HTTP; Fri, 26 Mar 2010 10:15:24 -0700 (PDT) In-Reply-To: <86e557c1003261006q10cb0943lf8cddd14ba0afbc7@mail.gmail.com> References: <86e557c1003261006q10cb0943lf8cddd14ba0afbc7@mail.gmail.com> Date: Fri, 26 Mar 2010 10:15:24 -0700 Received: by 10.216.88.139 with SMTP id a11mr724543wef.74.1269623724920; Fri, 26 Mar 2010 10:15:24 -0700 (PDT) Message-ID: Subject: Re: deleting a node - command line tool From: Henry Robinson To: zookeeper-user@hadoop.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Making delete optionally recursive would be a nice patch to have (hint, hint ;)). I'm not sure if the cli allows for a one-shot command (i.e. bin/zkCli.sh -server localhost:2181 -exec delete /katta) - but if it doesn't, it shouldn't be hard to add. Henry On 26 March 2010 10:06, Nick Dimiduk wrote: > The delete command provided by bin/zkCli.sh will delete a leaf node but i= s > not recursive. I don't have a copy on my desk, but I believe there's code= in > the O'Reilly Hadoop book for recursive node delete. > > -Nick > > On Fri, Mar 26, 2010 at 9:42 AM, Karthik K wrote: > >> Hi - >> =A0I am looking to delete a node (say, /katta) from a running zk ensembl= e >> altogether and curious if there is any command-line tool that is availab= le >> that can do a delete. >> >> -- >> =A0 Karthik. >> > --=20 Henry Robinson Software Engineer Cloudera 415-994-6679