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 directory
  • lib/log4j-1.2.15.jar, i.e. log4j jar file in lib directory
  • conf, i.e. compiled classes , resources in conf directory

the backslash there indicate shell command continues on next line.


Comments

Popular posts from this blog

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -