Creating ephemeral nodes: First time returns ZNODEEXISTS

2009-08-31 Thread Leonard Cuff
I've just upgraded to ZooKeeper 3.2.0, testing the fix for ephemeral nodes disappearing correctly when the client process dies. I'm seeing some unexpected behavior: The first time I call zoo_create() to create an ephemeral node, it returns ZNODEEXISTS, even if the node didn't previously exist. It

Re: Creating ephemeral nodes: First time returns ZNODEEXISTS

2009-08-31 Thread Leonard Cuff
wner is zero > then it's not an ephemeral node for example). You can also take a look > at the code for cli.c (or the tests) for some examples of how to > initialize/run a mt/st client process and compare it to your own. Btw, > we suggest that users use the multi-threaded client w

AM_PATH_CPPUNIT not found in library when doing autoreconf and/or ./configure

2009-09-11 Thread Leonard Cuff
error near unexpected token `1.10.2' ./configure: line 3880: ` AM_PATH_CPPUNIT(1.10.2)' -- Leonard Cuff lc...@valueclick.com ³This email and any files included with it may contain privileged, proprietary and/or confidential information that is for the sole use of the intended recipient

Re: AM_PATH_CPPUNIT not found in library when doing autoreconf and/or ./configure

2009-09-11 Thread Leonard Cuff
be required for just compiling > but for running make run-check. But that hasn't been fixed yet. > > http://issues.apache.org/jira/browse/ZOOKEEPER-316 > > Thanks > mahadev > > > On 9/11/09 2:38 PM, "Leonard Cuff" wrote: > >> >> I didn

How to expire a session

2009-09-25 Thread Leonard Cuff
expire. Can someone tell me what I¹m doing wrong? TIA, Leonard Leonard Cuff lc...@valueclick.com ³This email and any files included with it may contain privileged, proprietary and/or confidential information that is for the sole use of the intended recipient(s). Any disclosure, copying, distribu

Re: How to expire a session

2009-09-28 Thread Leonard Cuff
atcher to > wait for a connection, or you could do something simple like: > > while(zoo_state(zh_1) != ZOO_CONNECTED_STATE) { > sleep(1); > } > myid = *zoo_client_id(zh_1); > > the second part of the problem is related. you need to make sure you are > connected be

Struggling with a simple configuration file.

2009-10-08 Thread Leonard Cuff
490] - Unexpected exception ja -- Leonard Cuff lc...@valueclick.com ³This email and any files included with it may contain privileged, proprietary and/or confidential information that is for the sole use of the intended recipient(s). Any disclosure, copying, distribution, posting, or use of

Re: Struggling with a simple configuration file.

2009-10-09 Thread Leonard Cuff
> that doesn't explain the 0 id. i'd like to try an reproduce it. do you > have an empty data directory with a single file, myid, set to 1? > > ben > > Leonard Cuff wrote: >> I¹ve been developing for ZooKeeper for a couple months now, recently running >> in a

specifying the location of zookeeper.log

2009-10-16 Thread Leonard Cuff
in the configuration file. Am I overlooking something? Is there a way to have this file appear somewhere else? TIA, Leonard -- Leonard Cuff lc...@valueclick.com ³This email and any files included with it may contain privileged, proprietary and/or confidential information that is for the sole

Re: specifying the location of zookeeper.log

2009-10-16 Thread Leonard Cuff
documentation > for this. > > Thanks > mahadev > > > On 10/16/09 11:04 AM, "Leonard Cuff" wrote: > >> I¹ve read through the admin manual at >> http://hadoop.apache.org/zookeeper/docs/current/zookeeperAdmin.html#sc_loggi >> ng >> and I d

Re: specifying the location of zookeeper.log

2009-10-16 Thread Leonard Cuff
Leonard, > Looks like you are right. bin/zkServer.sh just logs the output to console, > so you should be able to redirect to any file you want. No? > > Anyways this is a bug. Please open a jira for it. > > Thanks > mahadev > > > On 10/16/09 11:27 AM, "Leo

Re: Cluster Configuration Issues

2009-10-22 Thread Leonard Cuff
lt >> to your hand-made files. >> >> On Thu, Oct 22, 2009 at 1:04 PM, Mark Vigeant >> wrote: >> >>> The file contains the number 1 and nothing else. My other node has the >>> number 2 (I only have 2 machines right now, I know it makes more sense to &