1
votes

I have installed zookeeper on my Linux server ubuntu 12.04 in some folder like abc/zookeeper/zkserver/bin/zkserver.sh start. this works fine and starts the server as expected but when i put this zkserver.sh file in /etc/init.d folder and copy the file in rc2.d folder for the reason to start-up zookeeper on system reboot. and when i run this command /etc/init.d/zkserver.sh start this is giving errors like: JMX enabled by default Using config: /etc/init.d/../etc/zookeeper/zoo.cfg grep: /etc/init.d/../etc/zookeeper/zoo.cfg: No such file or directory mkdir: cannot create directory `': No such file or directory Starting zookeeper ... STARTED

1

1 Answers

0
votes

The zkServer.sh is dependent on a certain directory structure and certain files being present. It is not supposed to be moved in isolation like that. It is also not supposed to be used as an init script.

Check if your zk download comes with the init script. Try looking at src/packages/rpm/init.d/zookeeper or similar, and use that one instead.