zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Dunning <ted.dunn...@gmail.com>
Subject Re: Integrate Zookeeper with hadoop mapreduce
Date Sat, 02 Jul 2011 16:16:30 GMT
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 <paul.rimba@gmail.com> 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.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message