Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Mirror of Apache Hadoop ZooKeeper

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 bin
Octocat-spinner-32 conf
Octocat-spinner-32 src
Octocat-spinner-32 LICENSE.txt
Octocat-spinner-32 NOTICE.txt
Octocat-spinner-32 README.txt
Octocat-spinner-32 build.xml
Welcome to ZooKeeper!

Run "ant" command in this directory to build the server/client. "zookeeper-dev.jar" will be output to this directory on a successful build.

Starting the server:

1) in the conf directory make a copy of zoo_sample.cfg (ie zoo.cfg) and edit as necessary. Default values will support a "standalone" instance.

2) start the server with the following comand line:

java -cp zookeeper-dev.jar:java/lib/log4j-1.2.15.jar org.apache.zookeeper.server.quorum.QuorumPeer conf/zoo.cfg

Notice that the server is picking up the file from the conf directory (default).

Starting a client shell

1) run the following command

java -cp zookeeper-dev.jar:java/lib/log4j-1.2.15.jar org.apache.zookeeper.ZooKeeper <server>:<port>

where server and port correspond to the ZooKeeper configuration.

Notice that the client is picking up the file from the conf directory (default).
Something went wrong with that request. Please try again.