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.gz
 
        Contains all the source files which can be built by running:
        mvn clean install
 
        To 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.gz

    Contains all the jar files required to run ZooKeeper
    Full 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 文件。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章