problem connecting to zookeeper server

2010-05-20 Thread Gregory Haskins
Hi, ZooKeeper newbie here, so probably simple 'pilot error', but yet I am stuck so any help appreciated. I am trying to stand up a zookeeper environment so I can check things out. I have an opensuse 11.2 virtual machine that I run the server in, and then I try to write a java client to connect

Re: problem connecting to zookeeper server

2010-05-20 Thread Lei Zhang
Seems you are passing in wrong arguments: Should have been: public ZooKeeper(String connectString, int sessionTimeout, Watcher watcher) throws IOException What you have in your client code is: On Thu, May 20, 2010 at 5:21 AM, Gregory Haskins gregory.hask...@gmail.comwrote:

Re: problem connecting to zookeeper server

2010-05-20 Thread Benjamin Reed
good catch lei! if this helps gregory, can you open a jira to throw an exception in this situation. we should be throwing an invalid argument exception or something in this case. thanx ben On 05/20/2010 09:04 AM, Lei Zhang wrote: Seems you are passing in wrong arguments: Should have been:

Re: Zookeeper EventThread and SendThread

2010-05-20 Thread Mahadev Konar
Hi Nick, These threads are spawned with each zookeeper client handle. As soon as you create a zookeeper client object these threads are spawned. Are yu creating too many zookeeper client objects in your application? Htanks mahadev On 5/20/10 11:30 AM, Nick Bailey nicholas.bai...@rackspace.com

Re: Zookeeper EventThread and SendThread

2010-05-20 Thread Nick Bailey
Seems like a likely possibility. We definetly don't have as many application threads as there are of these. Possibly we are keeping references to handles somehow though. We will look into that possibility. Thanks! Nick Bailey Rackspace Hosting Software Developer, Email Apps

Re: Concurrent reads and writes on BookKeeper

2010-05-20 Thread Patrick Hunt
On 05/20/2010 08:42 AM, Flavio Junqueira wrote: We have such a mechanism already, as Utkarsh mentions in the jira. The question is if we need more sophisticated mechanisms implemented, or if we should leave to the application to implement it. For now, we haven't felt the need for such extra

Re: Concurrent reads and writes on BookKeeper

2010-05-20 Thread André Oriani
Well Flavio, it is a extremely simple prototype where a primary broadcast updates on a single integer to backups. So we gonna have (n-1) reads for every write in a cluster of size n. I think sequential nodes in Zookeeper are fine for now, But I don't know if I am going to review that if things