Return-Path: Delivered-To: apmail-hadoop-zookeeper-user-archive@minotaur.apache.org Received: (qmail 62570 invoked from network); 26 Mar 2010 19:37:04 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 26 Mar 2010 19:37:04 -0000 Received: (qmail 3608 invoked by uid 500); 26 Mar 2010 19:37:04 -0000 Delivered-To: apmail-hadoop-zookeeper-user-archive@hadoop.apache.org Received: (qmail 3589 invoked by uid 500); 26 Mar 2010 19:37:04 -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 3581 invoked by uid 99); 26 Mar 2010 19:37:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Mar 2010 19:37:04 +0000 X-ASF-Spam-Status: No, hits=0.8 required=10.0 tests=AWL,FREEMAIL_FROM,HTML_MESSAGE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of oss.akk@gmail.com designates 74.125.83.176 as permitted sender) Received: from [74.125.83.176] (HELO mail-pv0-f176.google.com) (74.125.83.176) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Mar 2010 19:36:59 +0000 Received: by pvg7 with SMTP id 7so3578618pvg.35 for ; Fri, 26 Mar 2010 12:36:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:content-type; bh=USocmj337amjpJnsaHaiCHZKyncwCcR2Uy2g3nMHPJY=; b=JmOFjzAHOrEKFU9bTS7rRzS/VYz081jAwdYjItIXjnvTUTY0Qja3OhngYAmH6hJwOY u5p1gUsGHOnIINZGpvmaqObfsyTuLbT5JgvQoESBUVMgohDD2GA5vnm3gKfYNy7vPmV5 Ye+f6QkL4T+okA5elb6rTfcEYSaaD4drJZU4w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=RCDqQaUKBSScaXRxZIrGB5iXo1b69WhszhW8+FRLBNCMARIfoN/cYFINUD7dOMJWFX FI8evzxJo4OXLbQr8Mx+wxh6IGQEMGLjhVe5skMcPQ9oiZ7Kg8gR0UvHLEWd9xCjgErW u5o5N4GbQ1AT0AKu5qJNPgzT7HgD1bP9bE8oQ= MIME-Version: 1.0 Received: by 10.142.116.19 with HTTP; Fri, 26 Mar 2010 12:36:38 -0700 (PDT) In-Reply-To: References: <86e557c1003261006q10cb0943lf8cddd14ba0afbc7@mail.gmail.com> Date: Fri, 26 Mar 2010 12:36:38 -0700 Received: by 10.143.27.12 with SMTP id e12mr682292wfj.87.1269632198614; Fri, 26 Mar 2010 12:36:38 -0700 (PDT) Message-ID: Subject: Re: deleting a node - command line tool From: Karthik K To: zookeeper-user@hadoop.apache.org Content-Type: multipart/alternative; boundary=00504502cc73319f440482b948fd --00504502cc73319f440482b948fd Content-Type: text/plain; charset=ISO-8859-1 Thanks everyone for the replies. ZOOKEEPER-729 in place, with the patch. As I see - what I want is a recursive delete. I will try to get an implementation On Fri, Mar 26, 2010 at 10:15 AM, Henry Robinson wrote: > 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 > is > > 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 - > >> I am looking to delete a node (say, /katta) from a running zk ensemble > >> altogether and curious if there is any command-line tool that is > available > >> that can do a delete. > >> > >> -- > >> Karthik. > >> > > > > > > -- > Henry Robinson > Software Engineer > Cloudera > 415-994-6679 > --00504502cc73319f440482b948fd--