Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Zookeeper, mail # user - From standalone ZK instance to 3 instances


Copy link to this message
-
RE: From standalone ZK instance to 3 instances
Rakesh R 2013-11-21, 05:25
Hi Micheal,

Nice to hear about the progress and all the best for your efforts.
Adding one more point, which will be helpful to see general information about zookeeper server.

There is an interesting set of "4 letter words" in zookeeper.
Please refer section : http://zookeeper.apache.org/doc/trunk/zookeeperAdmin.html#sc_zkCommands

For example, 'stat' command will give the details as follows and will get to know the running status.

Zookeeper version: 3.4.5-21786, built on 10/17/2013 02:02 GMT
Clients:
 /10.11.41.1:53372[1](queued=0,recved=98923,sent=98923)
 /10.11.41.1:53374[1](queued=0,recved=224100,sent=224100)

Latency min/avg/max: 0/0/309
Received: 1106514
Sent: 1106515
Connections: 6
Outstanding: 0
Zxid: 0x1000037f3
Mode: leader
Node count: 2756

-Rakesh

-----Original Message-----
From: michael.boom [mailto:[EMAIL PROTECTED]]
Sent: 20 November 2013 21:03
To: [EMAIL PROTECTED]
Subject: Re: From standalone ZK instance to 3 instances

Hmm, I think you were right. Thank you!
I changed the conf from hostnames to IPs, and now it looks better.

However, when i connect with zkCli i get from both instances the message:

WATCHER::

WatchedEvent state:SyncConnected type:None path:null
[zk: localhost:9983(CONNECTED) 0]
Shouldn't one of them had become LEADER ? Or, am i looking in the wrong place?
Also, to be noted that the second ZK has replicated the state from the first.

--
View this message in context: http://zookeeper-user.578899.n2.nabble.com/From-standalone-ZK-instance-to-3-instances-tp7579325p7579343.html
Sent from the zookeeper-user mailing list archive at Nabble.com.