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, David

Re: Problem with Zookeeper cluster configuration

2010-10-27 Thread Jared Cantwell
I think your issue is that the clientPort is the same port as the leader communication port in the server.X entry. So the server begins listening for clients on port 2181, but then cannot communicate with the leader, or vice versa. Change the client port to something other than 5181 and see if th

Re: Wacther question

2010-11-09 Thread Jared Cantwell
Neo, To me it looks like this exception is while you are trying to call: zk.create(path, null, Ids.OPEN_ACL_UNSAFE, CreateMode.PERSISTENT); where: path = "/job_id/task_id/" Does the node /job_id already exist when you are making this request? Zookeeper does not recursively create the path you