Re: Regarding the process method of Watcher Interface

2010-07-19 Thread Dave Wright
There is a single thread used to fire notification callbacks, your callbacks will be called in order one at a time and you only need to worry about synchronizing state with the rest of your code. -Dave Wright On Mon, Jul 19, 2010 at 5:37 PM, Srikanth Bondalapati: sbondalap...@tagged.com wrote:

Re: Regarding the process method of Watcher Interface

2010-07-19 Thread Srikanth Bondalapati:
Thanks Dave Ben. So, ultimately I need to synchronize process() method, when the same Watcher object is registered with different zookeeper handles (or Znodes). :) On Mon, Jul 19, 2010 at 3:03 PM, Benjamin Reed br...@yahoo-inc.com wrote: yes, you (and dave) are correct. watches are invoked

Re: BookKeeper Doubts

2010-07-19 Thread Benjamin Reed
you have concluded correctly. 1) bookkeeper was designed for a process to use as a write-ahead log, so as a simplifying assumption we assume a single writer to a log. we should be throwing an exception if you try to write to a handle that you obtained using openLedger. can you open a jira for

JMX error while starting ZooKeeper

2010-07-19 Thread Rakesh Aggarwal
Hi Folks, I am setting up a HBase cluster for pseudo-distributed environment using CDH3 on RedHat Linux. I am getting the following exception while trying to start ZooKeeper. It is complaining about a missing JMX class for managing Log4J, see the exception below. I am running JDK1.6_0.21.

Re: JMX error while starting ZooKeeper

2010-07-19 Thread Patrick Hunt
On 07/19/2010 05:04 PM, Rakesh Aggarwal wrote: javax.management.MBeanServer; was not found Sounds like you are missing rt.jar for some reason (contains that class). Try running java -verbose -version and see what jars are being picked up, I see a number of lines containing: ...

Re: ZK recovery questions

2010-07-19 Thread Ashwin Jayaprakash
Cool. I've only tried the single node server so far. I didn't know it could sync from other senior servers. Server/Cluster addresses: I read somewhere in the docs/todo list that the bootstrap server list for the clients should be the same. So, what happens when a new replacement server has to be

Re: ZK recovery questions

2010-07-19 Thread Ted Dunning
They don't auto-detect. What is usually done is that the configurations on all the servers are changed and they are re-started one at a time. On Mon, Jul 19, 2010 at 8:35 PM, Ashwin Jayaprakash ashwin.jayaprak...@gmail.com wrote: So, what happens when a new replacement server has to be