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

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -