Skip to content

zx150842/zookeeper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 com.yahoo.zookeeper.server.quorum.QuorumPeer conf/zoo.cfg

Notice that the server is picking up the log4j.properties 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 com.yahoo.zookeeper.ZooKeeper <server>:<port>

where server and port correspond to the ZooKeeper configuration.

Notice that the client is picking up the log4j_console.properties file from the conf directory (default).

About

Apache Hadoop ZooKeeper源码分析

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 67.6%
  • C++ 10.7%
  • C 8.4%
  • JavaScript 3.8%
  • Python 2.4%
  • Shell 1.6%
  • Other 5.5%