README.txt 988 B

12345678910111213141516171819202122232425262728
  1. Welcome to ZooKeeper!
  2. -------------------
  3. Run "ant" command in this directory to build the server/client. "zookeeper-dev.jar" will be output to this directory on a successful build.
  4. -------------------
  5. Starting the server:
  6. 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.
  7. 2) start the server with the following comand line:
  8. java -cp zookeeper-dev.jar:java/lib/log4j-1.2.15.jar com.yahoo.zookeeper.server.quorum.QuorumPeer conf/zoo.cfg
  9. Notice that the server is picking up the log4j.properties file from the conf directory (default).
  10. -----------------------
  11. Starting a client shell
  12. 1) run the following command
  13. java -cp zookeeper-dev.jar:java/lib/log4j-1.2.15.jar com.yahoo.zookeeper.ZooKeeper <server>:<port>
  14. where server and port correspond to the ZooKeeper configuration.
  15. Notice that the client is picking up the log4j_console.properties file from the conf directory (default).