From user-return-6243-apmail-zookeeper-user-archive=zookeeper.apache.org@zookeeper.apache.org Mon Mar 25 06:12:09 2013 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 3797DFCAE for ; Mon, 25 Mar 2013 06:12:09 +0000 (UTC) Received: (qmail 54772 invoked by uid 500); 25 Mar 2013 06:12:08 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 52611 invoked by uid 500); 25 Mar 2013 06:12:03 -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 51372 invoked by uid 99); 25 Mar 2013 06:12:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Mar 2013 06:12:01 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of shralex@gmail.com designates 209.85.210.181 as permitted sender) Received: from [209.85.210.181] (HELO mail-ia0-f181.google.com) (209.85.210.181) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Mar 2013 06:11:57 +0000 Received: by mail-ia0-f181.google.com with SMTP id o25so5228849iad.12 for ; Sun, 24 Mar 2013 23:11:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type:content-transfer-encoding; bh=KYCaBSimTXxX99CYZZkI7KWe3u2f3Sw62Xld5w0mR1s=; b=EFA1WhrphCaYWoI2RyWE0vHacIW1p9aW97bkdVk/RcNdbWyESFeLVqZJ+/PlgbzvKp Vpg/woZzEXa55BoX5gFnx/SKtXxb9DjLpPKNKtHADl6WnjPv2nJ5c9/GmEiMPnOeXW9I teAIXAa2juGRsQFIX4NTr9Y0i7zN4NSZeoQEuGsoiDc7l5H3u6XCZJ9+EMx7kwBawaV+ on9uUlLq98vM8L76fzjpUxpbgQ7aky+Pd5USXYywNhPx2i7l6oMwEPuo9VvhvvVgDAIs NnFl++clH64vve5h7Xrd7cRqhTHdI4VsQaneGtVpxGaRH8PseYXi1xew1g++dUtC8YRI xtJg== X-Received: by 10.50.203.72 with SMTP id ko8mr6910227igc.93.1364191897276; Sun, 24 Mar 2013 23:11:37 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.165.196 with HTTP; Sun, 24 Mar 2013 23:11:17 -0700 (PDT) In-Reply-To: <514FC90A.4020404@zenlok.com> References: <514C3DB6.3000405@zenlok.com> <514FC90A.4020404@zenlok.com> From: Alexander Shraer Date: Sun, 24 Mar 2013 23:11:17 -0700 Message-ID: Subject: Re: Best way to update node using command line To: user@zookeeper.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi Nate, You can use ZooKeeper CLI. > bin/zkCli.sh -server starts the CLI in interactive mode but if you do > bin/zkCli.sh -server command args It will just run that one command. There is also a similar way of doing it with the C cli. The code for the java CLI is in ZooKeeperMain.java. Alex On Sun, Mar 24, 2013 at 8:48 PM, Nathan Findley wrote: > On 03/22/2013 08:17 PM, Nathan Findley wrote: >> >> Could somebody suggest a simple way to alter a data node via the command >> line? I would prefer to use the default utilities that come with the >> download made available by apache.org. The only requirement is that I ne= ed >> to be able to specify newlines in the node's data. >> >> Regards, >> Nate >> > > Is this a poorly phrased question or am I missing something that is obvio= us? > > -- > CTO > Zenlok=E6=A0=AA=E5=BC=8F=E4=BC=9A=E7=A4=BE >