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 8AE17662A for ; Sat, 2 Jul 2011 16:17:20 +0000 (UTC) Received: (qmail 21007 invoked by uid 500); 2 Jul 2011 16:17:20 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 20928 invoked by uid 500); 2 Jul 2011 16:17:19 -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 20920 invoked by uid 99); 2 Jul 2011 16:17:18 -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 16:17:18 +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 ted.dunning@gmail.com designates 209.85.220.170 as permitted sender) Received: from [209.85.220.170] (HELO mail-vx0-f170.google.com) (209.85.220.170) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Jul 2011 16:17:11 +0000 Received: by vxi39 with SMTP id 39so4093126vxi.15 for ; Sat, 02 Jul 2011 09:16:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=r/M++aXa+zMhxKu4Obfej2BW4MHA6Q9fK0aTxXVqttA=; b=OEfOp7yDbTaWd7rsCX7XRredWVqhBUPCl75SaTHEHhGj2OyRrYvJNJ8hXTHZAgntO3 0X+gtHFMwJRFHpOYTWgErxMfM2MVen4ayYzZW4muL3ps5VvZLIgjM1EOAXYPhsmIGTAQ KGaA2ZCrdpwlIq0+BCQ3UpJRifCFRVQdw7Cwc= Received: by 10.52.92.78 with SMTP id ck14mr2756345vdb.100.1309623410152; Sat, 02 Jul 2011 09:16:50 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.110.68 with HTTP; Sat, 2 Jul 2011 09:16:30 -0700 (PDT) In-Reply-To: References: <1309484848472-6535967.post@n2.nabble.com> From: Ted Dunning Date: Sat, 2 Jul 2011 09:16:30 -0700 Message-ID: Subject: Re: Integrate Zookeeper with hadoop mapreduce To: user@zookeeper.apache.org Content-Type: multipart/alternative; boundary=bcaec501676326d3b304a718763b X-Virus-Checked: Checked by ClamAV on apache.org --bcaec501676326d3b304a718763b Content-Type: text/plain; charset=UTF-8 Just include all of the bytes from the file. If you use the very nice guava library, this can be done so: zk.setData(Files.toByteArray(new File(configFileName)), false, null); On Sat, Jul 2, 2011 at 1:31 AM, Paul Rimba wrote: > 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. > --bcaec501676326d3b304a718763b--