zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From judesolomonc <judesolom...@fss.co.in>
Subject Zoo Keeper - The Beginning
Date Thu, 29 Aug 2013 06:46:13 GMT

I am trying to use zookeeper, theoretically i can understand the
functionality of this frame work. But when it comes to the implementation
part, I am not aware of where to start and how to start. Please confirm on
my understandings or correct me if I am wrong.

Client port - It is the port where the client sends request to the zookeeper
server.1= - the server in the zookeeper cluster 4567 -
port where the zookeeper communicates when the request is sent, 4587 - the
port where the clustered servers communicates.

This configured server should be an instance of a zookeeper (Built on
zookeeper) ? or it can be any server using NIO listening on the mentioned
port ?

I have started up a zoo keeper server in two ways 


NIOServerCnxn.Factory standaloneServerFactory = new
NIOServerCnxn.Factory(new InetSocketAddress(clientPort), numConnections);


2. using QuorumPeer class

is this the correct way to start a server ? And how to receive a request
sent from the client ? As the connection is created inside the zookeeper,
how to read/see the data sent form the client in the server ?

Can someone help me with a Java code to create a zookeeper service, and
servers and to receive the request from the client and print it in the
server ?

And also for the distributed servers to handle the failover conditions ?

Jude Solomon

View this message in context: http://zookeeper-user.578899.n2.nabble.com/Zoo-Keeper-The-Beginning-tp7579030.html
Sent from the zookeeper-user mailing list archive at Nabble.com.

View raw message