问题描述
我是新来的ZooKeeper和我已经安装了3.4.6饲养员。当我试图安装zooInspector我得到了以下错误
I am new to Zookeeper and I had installed zookeeper 3.4.6. When I tried to install zooInspector I got the following error
zooInspector.sh:18 : zooInspector.sh: lib/zookeeper3.4.6.jar:lib/jToaster1.0.4.jar:lib: not found
我做的是,首先,我用导航终端的ZooKeeper文件夹,运行ant命令,然后复制动物园管理员-3.4.6.jar到lib文件夹,并用zooinspector-更换zooinspector-3.3.0罐子编辑zooInspector.sh 3.4.6.jar
what I done was, First I navigated to zookeeper folder using terminal and run command ant and then copied zookeeper-3.4.6.jar to the lib folder and edited zooInspector.sh by replacing zooinspector-3.3.0 jar with zooinspector-3.4.6.jar
在此先感谢..
推荐答案
:蚂蚁
然后导航到/路径/要/你/饲养员/建设/的contrib / ZooInspector。确保你在zooInspector lib目录下复制饲养员-3.4.6.jar。在默认情况下它不会出现。
from your zookeeper installation root directory run: antthen navigate to /path/to/your/zookeeper/build/contrib/ZooInspector. make sure you copied zookeeper-3.4.6.jar in zooInspector lib directory. by default it won't be there.
现在使用以下行替换zooInspector.sh的内容:
now replace the content of zooInspector.sh with the following line:
java命令zookeeper-3.4.6-ZooInspector.jar:lib/log4j-1.2.15.jar:lib/zookeeper-3.4.6.jar:lib/jtoaster-1.0.4.jar:lib/slf4j-log4j12-1.6.1.jar:lib/slf4j-api-1.6.1.jar:lib org.apache.zookeeper.inspector.ZooInspector
java -cp zookeeper-3.4.6-ZooInspector.jar:lib/log4j-1.2.15.jar:lib/zookeeper-3.4.6.jar:lib/jtoaster-1.0.4.jar:lib/slf4j-log4j12-1.6.1.jar:lib/slf4j-api-1.6.1.jar:lib org.apache.zookeeper.inspector.ZooInspector
现在运行它:./zooInspector.sh
now run it: ./zooInspector.sh
这篇关于错误安装zooInspector的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!