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 45C6CFA53 for ; Mon, 25 Mar 2013 16:38:15 +0000 (UTC) Received: (qmail 7161 invoked by uid 500); 25 Mar 2013 16:38:13 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 6531 invoked by uid 500); 25 Mar 2013 16:38:13 -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 6366 invoked by uid 99); 25 Mar 2013 16:38:12 -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 16:38:12 +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.223.181 as permitted sender) Received: from [209.85.223.181] (HELO mail-ie0-f181.google.com) (209.85.223.181) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Mar 2013 16:38:07 +0000 Received: by mail-ie0-f181.google.com with SMTP id 17so7696945iea.12 for ; Mon, 25 Mar 2013 09:37:46 -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=65cOOoZFGPbKyzgEyiszTs9dqTRz7vgs+eSENsejRBo=; b=waC814/der1WnxcDZoPoEpLynYQDs38B/7vppNOPypPBrtQul7GkdldowMWo+N80RV XO+INUKMWnVS3hmTGN1p3TuDAccfyfuMg8f9qoz29YA76jQqqUeiNbZJtpNmCy0HuS4f ZmZrQ8eSKAkWVlRsIMTrX7DlCnfaoTKNuHxQRa9KAXAdomI+8IIk/JCTFO8SCh+2S/kQ LsPKRRa64zvvGoai/GiyNCodO3PZf4uVZ6xZZmfSL8uSZK1ZI/VgoTuZ2Ukr1AhfPGVM 99jxRrAPEREcaIBr22n2jPqDaIALj8KQ2djpQBZuKAceqAnfW0mLAr6ZAOS+u3nzdHkS UM3Q== X-Received: by 10.50.203.72 with SMTP id ko8mr8278756igc.93.1364229466298; Mon, 25 Mar 2013 09:37:46 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.165.196 with HTTP; Mon, 25 Mar 2013 09:37:26 -0700 (PDT) In-Reply-To: <51500145.9040503@zenlok.com> References: <514C3DB6.3000405@zenlok.com> <514FC90A.4020404@zenlok.com> <514FED32.9070509@zenlok.com> <51500145.9040503@zenlok.com> From: Alexander Shraer Date: Mon, 25 Mar 2013 09:37:26 -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 I'm not sure how to do that, sorry, perhaps someone else has an idea. But you can take a look at ZooKeeperMain.java and perhaps add such an option if its not there. Thanks, Alex On Mon, Mar 25, 2013 at 12:48 AM, Nathan Findley wrote: > On 03/25/2013 04:27 PM, Alexander Shraer wrote: >> >> yeah, it splits using spaces. >> but try this: >> >>> bin/zkCli.sh -server 127.0.0.1:2797 set /configs/collection1/nate "tes= t >>> me \n here" >> >> >> Alex >> >> >> >> > Alex, > > Thanks for your input, but when I try that the value stored is not a > newline, but a literal string "test me \n here". I am hoping to be able = to > alter node value so that it contains newlines. Can I redirect a file's > contents into the set command? > > > Regards, > Nate > > -- > CTO > Zenlok=E6=A0=AA=E5=BC=8F=E4=BC=9A=E7=A4=BE >