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 06:32:54 GMT
On Fri, Jul 1, 2011 at 10:10 PM, Paul Rimba <paul.rimba@gmail.com> 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

> 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?

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