java - Understanding ZooKeeper startup command line -
i reading zookeeper cluster set-up document
here .
but unfortunately can't understand java command start zookeeper service.
$ java -cp zookeeper.jar:lib/log4j-1.2.15.jar:conf \ org.apache.zookeeper.server.quorum.quorumpeermain zoo.cfg
as far knew(please correct if wrong.thanks), -cp
means -classpath
option. :lib/log4j-1.2.15.jar
means reference libraries of executable jar zookeeper.jar
. org.apache.zookeeper.server.quorum.quorumpeermain
main class command needed. , zoo.cfg
means argument of main class.
what can't understand :conf \
part. mean?
i tried read document java document. didn't helpful.
could please shed light on ?thanks.
the conf
part adds classes , resources conf
directory classpath.
the classpath contains 3 entries:
zookeeper.jar
, i.e. zookeeper jar file in current working directorylib/log4j-1.2.15.jar
, i.e. log4j jar file inlib
directoryconf
, i.e. compiled classes , resources inconf
directory
the backslash there indicate shell command continues on next line.
Comments
Post a Comment