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 B57F66808 for ; Sat, 2 Jul 2011 08:37:01 +0000 (UTC) Received: (qmail 5362 invoked by uid 500); 2 Jul 2011 08:32:46 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 2816 invoked by uid 500); 2 Jul 2011 08:32:22 -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 2753 invoked by uid 99); 2 Jul 2011 08:32:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Jul 2011 08:32:13 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of paul.rimba@gmail.com designates 209.85.214.42 as permitted sender) Received: from [209.85.214.42] (HELO mail-bw0-f42.google.com) (209.85.214.42) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Jul 2011 08:32:03 +0000 Received: by bwa19 with SMTP id 19so5142352bwa.15 for ; Sat, 02 Jul 2011 01:31:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=2zvPojTf0v2tf+pNlnLlPAC619naJrMj1q1aWmdmomY=; b=hMaSUGGW27/MeKh49lPGijZXdOJFECmBepa5lBhjy/E8iY9/IPEYRbDdcJLzDHOgM2 DcWYyZFHGeCuj8DHajo5P+T0joI5neK+vE25yFJE6PTsVKeFLlQziONeYe9XcHviPL+5 MNTDljD7oOzIghWJTZPLUo5EDBx0giys2vl64= MIME-Version: 1.0 Received: by 10.204.19.18 with SMTP id y18mr3831763bka.179.1309595502920; Sat, 02 Jul 2011 01:31:42 -0700 (PDT) Received: by 10.204.67.17 with HTTP; Sat, 2 Jul 2011 01:31:42 -0700 (PDT) In-Reply-To: References: <1309484848472-6535967.post@n2.nabble.com> Date: Sat, 2 Jul 2011 18:31:42 +1000 Message-ID: Subject: Re: Integrate Zookeeper with hadoop mapreduce From: Paul Rimba To: user@zookeeper.apache.org Content-Type: multipart/alternative; boundary=00032555aefec045b004a711f665 X-Virus-Checked: Checked by ClamAV on apache.org --00032555aefec045b004a711f665 Content-Type: text/plain; charset=ISO-8859-1 No worries. Too much email distorted my brain too ;p hmm.. it does return the string. However, i wanted to store a whole configuration files in the znode. Mahadev asked me to build a tool which i am not sure how to as i am still a newbie on zookeeper. If you could point out how to do it, it would be best. Thanks On Sat, Jul 2, 2011 at 4:32 PM, Ted Dunning wrote: > On Fri, Jul 1, 2011 at 10:10 PM, Paul Rimba wrote: > > > ... > > @Ted : I thought this is the zookeeper mailing list? Could you give me a > > link for me to store anything on znode? > > > > Silly me! I saw your reference to mrV2 and had just read a string of > Hadoop > emails. > > > > so far what i have used is something like this: > > > > zk.setData(path, value.getBytes(CHARSET), -1); > > where protected ZooKeeper zk; > > > > that only updates like a string to my znode. > > > > Could you help me with that please? > > > > This is just fine. > > Are you saying that this: > > Stat s = new Stat(); > new String(zk.getData(path, false, s), CHARSET); > > Does not return a copy of your string? > --00032555aefec045b004a711f665--