Errors while running sytest

2010-04-06 Thread Vishal K
Hi, I am trying to run systest on a 3 node cluster ( http://svn.apache.org/repos/asf/hadoop/zookeeper/trunk/src/java/systest/README.txt ). When I reach the 4th step which is to actually run the test I get exception shown below. Exception in thread main java.lang.NoClassDefFoundError:

Re: Embedding ZK in another application

2010-04-23 Thread Vishal K
Hi, Good question. We are planning to do something similar as well and it will great to know if there are any issues with embedding ZK server into an app. We simply use QourumPeerMain and QourumPeer from our app to start/stop the ZK server. Is this not a good way to do it? On Fri, Apr 23, 2010

Re: Embedding ZK in another application

2010-04-25 Thread Vishal K
Hi Mahadev, Ted, Thanks for the feedback. On Fri, Apr 23, 2010 at 3:02 PM, Ted Dunning ted.dunn...@gmail.com wrote: It is, of course, your decision, but a key coordination function is to determine whether your application is up or not. That is very hard to do if Zookeeper is inside your

Re: Embedding ZK in another application

2010-04-29 Thread Vishal K
Hi, Well looks like FastLeaderElection.shutdown() is not invoked. This has been in 3.3.0. Should have checked on that earlier :-) On Thu, Apr 29, 2010 at 10:13 AM, Vishal K vishalm...@gmail.com wrote: Hi Ted, We want the application that embeds the ZK server to be running even after the ZK

Securing ZooKeeper connections

2010-05-25 Thread Vishal K
Hi All, Since ZooKeeper does not support secure network connections yet, I thought I would poll and see what people are doing to address this problem. Is anyone running ZooKeeper over secure channels (client - server and server- server authentication/encryption)? If yes, can you please elaborate

cleanup ZK takes 40-60 seconds

2010-07-16 Thread Vishal K
Hi, We have embedded ZK server in our application. We start a thread in our application and call QuorumPeerMain.InitializeArgs(). When cleaning-up ZK we call QuorumPeerMain.shutdown() and wait for the thread that is calling InitializeArgs() to finish. These two steps are taking around 60

Too many KeeperErrorCode = Session moved messages

2010-08-05 Thread Vishal K
Hi All, I am seeing a lot of these messages in our application. I would like to know if I am doing something wrong or this is a ZK bug. Setup: - Server environment:zookeeper.version=3.3.0-925362 - 3 node cluster - Each node has few clients that connect to the local server using 127.0.0.1 as the

Re: How to handle Node does not exist error?

2010-08-12 Thread Vishal K
is a bad idea. On Thu, Aug 12, 2010 at 6:33 AM, Vishal K vishalm...@gmail.com wrote: Hi Ted, Can you explain why running ZK in embedded mode can cause znode inconsistencies? Thanks. -Vishal On Thu, Aug 12, 2010 at 12:01 AM, Ted Dunning ted.dunn...@gmail.com wrote: Try

Re: How to handle Node does not exist error?

2010-08-16 Thread Vishal K
Hi Dr Hao, If you think this is not a configuration issue, then it would be a good idea to open a jira. Thanks. On Thu, Aug 12, 2010 at 8:42 PM, Ted Dunning ted.dunn...@gmail.com wrote: On Thu, Aug 12, 2010 at 4:57 PM, Dr Hao He h...@softtouchit.com wrote: hi, Ted, I am a little bit

Re: How to handle Node does not exist error?

2010-08-16 Thread Vishal K
In my case, I am pretty sure that the configuration was right. I will reproduce it and post more info later. Thanks. On Mon, Aug 16, 2010 at 1:08 PM, Patrick Hunt ph...@apache.org wrote: Try using the logs, stat command or JMX to verify that each ZK server is indeed a leader/follower as

Re: Weird ephemeral node issue

2010-08-17 Thread Vishal K
Hi Qing, Can you list the znodes from the monitor and from the node that the monitor is restarting (run zkCli.sh on both machines). I am curious to see if the node that did not receive the SESSION_EXPIRED event still has the znode in its database. Also can you describe your setiup? Can you send

Re: Session expiration caused by time change

2010-08-19 Thread Vishal K
Hi, I remember Ben had opened a jira for clock jumps earlier: https://issues.apache.org/jira/browse/ZOOKEEPER-366. It is not uncommon to have clocks jump forward in virtualized environments. It is desirable to modify ZooKeeper to handle this situation (as much as possible) internally. It would

Re: Session expiration caused by time change

2010-08-19 Thread Vishal K
:51 AM, Vishal K vishalm...@gmail.com wrote: Hi, I remember Ben had opened a jira for clock jumps earlier: https://issues.apache.org/jira/browse/ZOOKEEPER-366. It is not uncommon to have clocks jump forward in virtualized environments. It is desirable to modify ZooKeeper to handle

Re: Session expiration caused by time change

2010-08-19 Thread Vishal K
request to see if the client is really dead? ben On 08/19/2010 10:17 AM, Vishal K wrote: Hi Ted, I haven't give it a serious thought yet, but I don't think it is neccessary for the cluster to keep track of time. A node can make its own decision. For the sake of argument, lets say

Understanding ZooKeeper data file management and LogFormatter

2010-09-08 Thread Vishal K
Hi All, Can you please share your experience regarding ZK snapshot retention and recovery policies? We have an application where we never need to rollback (i.e., revert back to a previous state by using old snapshots). Given this, I am trying to understand under what circumstances would we ever

Re: Understanding ZooKeeper data file management and LogFormatter

2010-09-08 Thread Vishal K
a tangled cluster. I keep a few around just for backup purposes. On Wed, Sep 8, 2010 at 12:01 PM, Vishal K vishalm...@gmail.com wrote: Hi All, Can you please share your experience regarding ZK snapshot retention and recovery policies? We have an application where we never need

Re: znode inconsistencies across ZooKeeper servers

2010-10-06 Thread Vishal K
reappear when A is restarted and successfully rejoins the cluster. (at least until the session timeout is exceeded) Patrick On Tue, Oct 5, 2010 at 11:04 AM, Vishal K vishalm...@gmail.com wrote: Hi, I have a 3 node ZK cluster (A, B, C). On one of the the nodes (node A), I have a ZK client

Reading znodes directly from snapshot and log files

2010-10-21 Thread Vishal K
Hi, Is it possible to read znodes directly from snapshot and log files instead of usign ZooKeeper API. In case a ZK ensemble is not available, can I login to all available nodes and run a utility that will dump all znodes? Thanks. -Vishal