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 6C108FFE3 for ; Mon, 25 Mar 2013 07:28:30 +0000 (UTC) Received: (qmail 21849 invoked by uid 500); 25 Mar 2013 07:28:29 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 21290 invoked by uid 500); 25 Mar 2013 07:28:23 -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 21244 invoked by uid 99); 25 Mar 2013 07:28:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Mar 2013 07:28:22 +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 (nike.apache.org: domain of shralex@gmail.com designates 209.85.210.173 as permitted sender) Received: from [209.85.210.173] (HELO mail-ia0-f173.google.com) (209.85.210.173) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Mar 2013 07:28:16 +0000 Received: by mail-ia0-f173.google.com with SMTP id h37so5265233iak.18 for ; Mon, 25 Mar 2013 00:27:56 -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=+jS66P2u83BiE8c3ZBUUxC3wdPLVcdhhP/xh1YiQgws=; b=LMmoNVKMv4jAW191A03ZKagj3VQkWT5okhmoa+FbBdsqzodWUXt6w963cST8GUCYZb 7YpERVDSrDZitiIRctMAzNSFFrGcNpMTMAA+ot28jtSe3bNgHk5L9gZ12M0FBm5S5ESC 3IMEsRWP8XlrkeJ3uUA+f9kBbeQxmPpwajA9ytkvRYDZinZWl3BfTYUUr7dBm3s0uctr AAAlSKSnzAaRE9Ki6vEJ8zTlqzfwZNXNnrBQIL47FVUgIZ+rGi8+mWS4HjAEbad3Au4y dobpOE41lKzhBy5ouUao4ou8qgNzk5Dx+wq+6oSenP5fV0l+f/cYrDftzLd4ehx8Rp0G QuMw== X-Received: by 10.50.203.72 with SMTP id ko8mr7034863igc.93.1364196476045; Mon, 25 Mar 2013 00:27:56 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.165.196 with HTTP; Mon, 25 Mar 2013 00:27:35 -0700 (PDT) In-Reply-To: <514FED32.9070509@zenlok.com> References: <514C3DB6.3000405@zenlok.com> <514FC90A.4020404@zenlok.com> <514FED32.9070509@zenlok.com> From: Alexander Shraer Date: Mon, 25 Mar 2013 00:27:35 -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 yeah, it splits using spaces. but try this: > bin/zkCli.sh -server 127.0.0.1:2797 set /configs/collection1/nate "test = me \n here" Alex On Sun, Mar 24, 2013 at 11:22 PM, Nathan Findley wrote: > On 03/25/2013 03:11 PM, Alexander Shraer wrote: >> >> 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 wrot= e: >>> >>> On 03/22/2013 08:17 PM, Nathan Findley wrote: >>>> >>>> Could somebody suggest a simple way to alter a data node via the comma= nd >>>> 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 >>>> need >>>> 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 >>> obvious? >>> >>> -- >>> CTO >>> Zenlok=E6=A0=AA=E5=BC=8F=E4=BC=9A=E7=A4=BE >>> > Alex, > > Just to illustrate my ignorance, when using zkCli.sh I am trying to add a > newline to the data: > > [zk: localhost:2181(CONNECTED) 21] set /configs/collection1/nate test me = \n > here > Command failed: java.lang.NumberFormatException: For input string: "me" > [zk: localhost:2181(CONNECTED) 22] > > I am doing this because I am using zookeeper + solr 4, which writes to a > data properties file inside zookeeper that I would like to edit, but has > more than one line. > > > Regards, > Nate > > -- > CTO > Zenlok=E6=A0=AA=E5=BC=8F=E4=BC=9A=E7=A4=BE >