zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diego Oliveira <loki...@gmail.com>
Subject Re: Zoo Keeper - The Beginning
Date Sun, 01 Sep 2013 14:31:08 GMT

    May be you are misunderstanding the way Zookeeper works. It is
basically a remote file system with a lot of guaranties regarding
distributed operations in the files and folders, aka znodes. So, like you
would normally do in a file system, you just turn it on and use. There is
an executable you may start "/bin/zkServer.sh start-foreground".

   From the client side you may create and observe znodes. I have a simple
demo project that I use here in Brazil, for training and conferences, it's
variables and classes are in Portuguese but you may take o look. Also there
is some code sample in the code tree, in src/recipes/.


On Thu, Aug 29, 2013 at 3:46 AM, judesolomonc <judesolomonc@fss.co.in>wrote:

> Hi
> 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
> 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
> 1.
> NIOServerCnxn.Factory standaloneServerFactory = new
> NIOServerCnxn.Factory(new InetSocketAddress(clientPort), numConnections);
>                 standaloneServerFactory.startup(server);
> 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 ?
> Thanks
> 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.

Diego de Oliveira
System Architect
Never argue with a fool -- people might not be able to tell the difference

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message