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 Mon, 02 Sep 2013 16:35:59 GMT

    You will not code in the server. Think in the zookeeper as file
systems, you use it to make your services communicate.

   1. Start the Zookeeper server. Open a terminal, go to the folder you
   downloaded Zookeeper, then execute ./bin/zkServer.sh start-foreground,
   it will start Zookeeper and print the log in the console.
   2. Create a java class as described in http://pastebin.com/Csd4UHqr
   3. Add the zookeeper.jar that is in your class path, compile and run the
   program. It will list the zookeeper content.

It is possible to do a lot more using
take a look in the recipes<http://zookeeper.apache.org/doc/trunk/recipes.html>,
or use a framework like Curator <http://curator.incubator.apache.org/>.

On Mon, Sep 2, 2013 at 6:30 AM, judesolomonc <judesolomonc@fss.co.in> wrote:

> Diego
> We are planning to use zookeeper for a server fail over condition. Which
> means when a server is down, the client should be able to connect and send
> request to an alternate configured. When going through the documentation,
> we
> found that zoo keeper helps in achieving this scenario. But we are not able
> to proceed with the setting up of server. When we start the server using
> the
> NIO connection factory given in the Zoo Keeper, the socket connection is
> created by the Zoo Keeper itself using the Client port. And once the server
> is up, how to use a client to communicate to the server with that port ?
> And
> in the server, how to read the request sent b the client ? Is there any
> exposed methods to get the data from the external client ? As far I have
> checked, the object used to create the connection is not exposed. So I am
> not able to use that object to receive the data from the client. Can you
> suggest me how to proceed for the above mentioned scenario ?
> Jude Solomon
> --
> View this message in context:
> http://zookeeper-user.578899.n2.nabble.com/Zoo-Keeper-The-Beginning-tp7579030p7579036.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