Re: newbie question: how to save a file using zookeeper

2014-05-19 Thread Cameron McKenzie
via zkCli.sh you can easily save a string as a value using the create command. create /testdir "this is a string" As far as loading a file into a zNode, it's just a matter of reading the file into an array of bytes and then creating the zNode with that array of bytes. I haven't used the native zo

newbie question: how to save a file using zookeeper

2014-05-19 Thread xytd
How do I serialize the contents of a file word by word to znodes? I don't see a way using zkCli or kazoo to save a string as value in a znode such as set /testdir "this is a string" Even better, is there a way to quickly dump a file by serializing into znode and vice versa? I don't like the idea

RE: Zookeeper Watcher Problem

2014-05-19 Thread FPJ
Could you share how you're changing your znode data (the precise call), please? -Flavio > -Original Message- > From: Giorgio Zullino [mailto:giorgiozull...@icloud.com] > Sent: 18 May 2014 17:08 > To: user@zookeeper.apache.org > Subject: Zookeeper Watcher Problem > > I want information ab