本文主要是介绍apache-zookeeper-3.6.0.tar.gz和apache-zookeeper-3.6.0-bin.tar.gz选择,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
从官网下载zookeeper的地址中有俩文件
一个是apache-zookeeper-3.6.0.tar.gz ,另一个是apache-zookeeper-3.6.0-bin.tar.gz
若是使用前者,运行的话会报错:Error: Could not find or load main class org.apache.zookeeper.server.quorum.QuorumPeerMain
通过查看解压缩后的文件README.md,可以知道
apache-zookeeper-[version].tar.gzContains all the source files which can be built by running:mvn clean installTo generate an aggregated apidocs for zookeeper-server and zookeeper-jute:mvn javadoc:aggregate(generated files will be at target/site/apidocs)
还需要安装maven,然后再运行mvn clean install 和mvn javadoc:aggregate,前一个命令会下载安装好多jar包,不知道要花多长时间
另外可知
apache-zookeeper-[version]-bin.tar.gzContains all the jar files required to run ZooKeeperFull documentation can also be found in the docs folder
带bin的这个文件已经自带所需要的各种jar包,不用再安装了
果断使用这个apache-zookeeper-3.6.0-bin.tar.gz文件,放弃apache-zookeeper-3.6.0.tar.gz 文件。
这篇关于apache-zookeeper-3.6.0.tar.gz和apache-zookeeper-3.6.0-bin.tar.gz选择的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!