[
https://issues.apache.org/jira/browse/ZOOKEEPER-982?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12989735#comment-12989735
]
Thomas Koch commented on ZOOKEEPER-982:
---------------------------------------
It may very well be possible, that the bug is only in the shell scripts of the
ZooKeeper Debian/Ubuntu package.
Bjørn wrote me about this bug and mentioned that he uses this package.
I should remove the bin/zkServer.sh from the Debian package. On Debian you
should start/stop zookeeper like all daemons with /etc/init.d/zookeeper
start|stop.
> zkServer.sh won't start zookeeper on an ubuntu 10.10 system due to a bug in
> the startup script.
> -----------------------------------------------------------------------------------------------
>
> Key: ZOOKEEPER-982
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-982
> Project: ZooKeeper
> Issue Type: Bug
> Components: scripts
> Affects Versions: 3.3.1
> Reporter: Bjørn Remseth
> Priority: Minor
> Fix For: 3.3.3, 3.4.0
>
>
> When running "zkServer.sh start" I get these error messages:
> ====
> $sudo sh bin/zkServer.sh start
> MX enabled by default
> bin/zkServer.sh: 69: cygpath: not found
> Using config:
> grep: : No such file or directory
> Starting zookeeper ...
> STARTED
> $ Invalid config, exiting abnormally
> ====
> The "Invalid config..." text is output from the server which terminates
> immediately after this message has been printed.
> The fix is easy: Inside zkServer.sh change the line
> ====
> if $cygwin
> ====
> into
> ====
> if [ -n "$cygwin" ]
> ====
> This fixes the problem and makes the server run
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira