安装zooInspector时出错

时间:2014-08-06 04:27:56

标签: apache apache-zookeeper

我是Zookeeper的新手,我安装了zookeeper 3.4.6。当我尝试安装zooInspector时出现以下错误

zooInspector.sh:18 : zooInspector.sh: lib/zookeeper3.4.6.jar:lib/jToaster1.0.4.jar:lib: not found

我做的是,首先我使用终端导航到zookeeper文件夹并运行命令ant然后将zookeeper-3.4.6.jar复制到lib文件夹并通过用zooinspector替换zooinspector-3.3.0 jar来编辑zooInspector.sh- 3.4.6.jar

提前致谢..

1 个答案:

答案 0 :(得分:0)

从您的zookeeper安装根目录运行:ant 然后导航到/ path / to / your / zookeeper / build / contrib / ZooInspector。确保在zooInspector lib目录中复制了zookeeper-3.4.6.jar。默认情况下不会出现。

现在用以下行替换zooInspector.sh的内容:

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