如何将runit与zookeeper一起使用

时间:2013-08-02 10:34:43

标签: apache-zookeeper

如何将runit与zookeeper一起使用?它的运行,但我得到那些讨厌的日志.....

这是我的运行文件     更多/ etc / sv / zookeeper / run

#!/bin/sh
exec 2>&1
exec  /var/chef/cache/zookeeper-3.4.5/bin/zkServer.sh start >> /tmp/zookeeper.log 2>&1
下面的

是我的日志文件的尾部      tail -f zookeeper.log

Using config: /var/chef/cache/zookeeper-3.4.5/bin/../conf/zoo.cfg
Starting zookeeper ... already running as process 32701.
JMX enabled by default
Using config: /var/chef/cache/zookeeper-3.4.5/bin/../conf/zoo.cfg
Starting zookeeper ... already running as process 32701.
JMX enabled by default
Using config: /var/chef/cache/zookeeper-3.4.5/bin/../conf/zoo.cfg
Starting zookeeper ... already running as process 32701.
JMX enabled by default
Using config: /var/chef/cache/zookeeper-3.4.5/bin/../conf/zoo.cfg
Starting zookeeper ... already running as process 32701.
JMX enabled by default
Using config: /var/chef/cache/zookeeper-3.4.5/bin/../conf/zoo.cfg
Starting zookeeper ... already running as process 32701.

1 个答案:

答案 0 :(得分:1)

从外观上看,zookeeper已经在你的系统中运行了。或者有一个锁定文件,由于不干净关闭而未被删除。使用zkServer.sh status检查它是否正常运行。