安装运行zookeeper的坑

从官网下载zookeeper的地址中有俩文件
一个是apache-zookeeper-3.5.5.tar.gz ,另一个是apache-zookeeper-3.5.5-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 installmvn 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.5.5-bin.tar.gz文件,放弃apache-zookeeper-3.5.5.tar.gz 文件。

posted @   哈喽哈喽111111  阅读(961)  评论(0编辑  收藏  举报
编辑推荐:
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
阅读排行:
· 分享4款.NET开源、免费、实用的商城系统
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· 上周热点回顾(2.24-3.2)
点击右上角即可分享
微信分享提示