Some one send me some demo of programming with C client API for Zookeeper

2009-04-16 Thread Qian Ye
Hi all: I'm a fresh man to Zookeeper. Finding that the documents at zookeeper.hadoop.apache.org are mostly about Java client API. However, I want some c client code to get start. Anyone could help me? -- With Regards! Ye, Qian Made in Zhejiang University

Re: Running ZooKeeper inside my web app

2009-04-16 Thread Ted Dunning
Absolutely. Katta did this, at least initially. Just spawn a thread and mimic the launching of a Zookeeper server. On Thu, Apr 16, 2009 at 6:38 AM, David Pollak feeder.of.the.be...@gmail.com wrote: Is it possible to start ZooKeeper programatically from inside my web app? -- Ted

Re: Some one send me some demo of programming with C client API for Zookeeper

2009-04-16 Thread Mahadev Konar
Please take a look at src/c/src/cli.c for some examples on zookeeper c client usage. Also you can see the test cases. Also http://hadoop.apache.org/zookeeper/docs/r3.1.1/zookeeperProgrammers.html Will give you some exmaple code for c clients. mahadev On 4/16/09 2:30 AM, Qian Ye

Re: problems on EC2?

2009-04-16 Thread Patrick Hunt
Take a look at this section to start: http://hadoop.apache.org/zookeeper/docs/current/zookeeperAdmin.html#sc_commonProblems What type of monitoring are you doing on your cluster? You could monitor at both the host and at the java (jmx) level. That will give you some insight on where to look;

Re: problems on EC2?

2009-04-16 Thread Ted Dunning
Patrick, Thanks enormously. This hasn't helped yet, but that is just because it was a very large bite of the apple. Once I digest it, I can tell that it will be very helpful. I did have a chance to look at the stat output and maximum latency was 300ms. How that connects with what you are

Re: problems on EC2?

2009-04-16 Thread Patrick Hunt
Well that's good - 300ms max latency means that the server can round trip any requests pretty quickly. It would lead me to look at the client VMs or (intermittent) network problems... Keep in mind though that's one of your servers (unless you are saying you checked all X of the servers in the