Re: Changing configuration

2010-10-07 Thread Flavio Junqueira
We don't have dynamic configuration yet, but it is on our todo list: http://wiki.apache.org/hadoop/ZooKeeper/ClusterMembershipso for now I believe you would have to reconfigure manually and restart the cluster. For Zab, you should be looking at org.apache.zookeeper.server.quorum.Cheers,-FlavioOn

Re: Create node with ancestors?

2010-10-07 Thread David Rosenstrauch
On 10/05/2010 06:20 PM, David Rosenstrauch wrote: The ZK create method explicitly states in the documentation If the parent node does not exist in the ZooKeeper, a KeeperException with error code KeeperException.NoNode will be thrown. (

Re: Create node with ancestors?

2010-10-07 Thread Jared Cantwell
We just wrote a very simple helper method that splits the path up and creates each parent in the path. Its a total of 5 lines of code. This isn't as efficient as it can be though if you're doing it frequently (which we don't do), but it works for us. ~Jared On Thu, Oct 7, 2010 at 11:35 AM,

Re: Create node with ancestors?

2010-10-07 Thread David Rosenstrauch
Yeah, I guess I'll have to whip up something similar. Thanks, DR On 10/07/2010 11:43 AM, Jared Cantwell wrote: We just wrote a very simple helper method that splits the path up and creates each parent in the path. Its a total of 5 lines of code. This isn't as efficient as it can be though if

Re: Changing configuration

2010-10-07 Thread Patrick Hunt
You probably want to do a rolling restart, this is preferable over restart the cluster as the service will not go down. http://wiki.apache.org/hadoop/ZooKeeper/FAQ#A6 http://wiki.apache.org/hadoop/ZooKeeper/FAQ#A6Patrick On Wed, Oct 6, 2010 at 9:49 PM, Avinash Lakshman avinash.laksh...@gmail.com

Re: snapshots

2010-10-07 Thread Patrick Hunt
Simplified: when a server comes back up it checks it's local snaps/logs to reconstruct as much of the current state as possible. It then checks with the leader to see how far behind it is, at which point it either gets a diff or gets a full snapshot (from the leader) depending on how far behind it

Re: znode inconsistencies across ZooKeeper servers

2010-10-07 Thread Patrick Hunt
Vishal, this sounds like a bug in ZK to me. Can you create a JIRA with this description, your configuration files from all servers, and the log files from all servers during the time of the incident? If you could run the servers in DEBUG level logging during the time you reproduce the issue that

Re: Changing configuration

2010-10-07 Thread Adam Lazur
Restart all clients too. .laz Patrick Hunt (ph...@apache.org) said: You probably want to do a rolling restart, this is preferable over restart the cluster as the service will not go down. http://wiki.apache.org/hadoop/ZooKeeper/FAQ#A6 http://wiki.apache.org/hadoop/ZooKeeper/FAQ#A6Patrick

Re: Question on production readiness, deployment, data of BookKeeper / Hedwig

2010-10-07 Thread Benjamin Reed
hi amit, sorry for the late response. this week has been crunch time for a lot of different things. here are your answers: production 1. it is still in prototype phase. we are evaluating different aspects, but there is still some work to do to make it production ready. we also need to