Bug#839184: zkCli.sh unusable as packaged

Cliff Kilby Clifton.Kilby at IgnitionOne.com
Thu Sep 29 22:22:46 UTC 2016


Package: zookeeper
Version: 3.4.9-1

Invoking zkCli fails due to an undeclared variable.

$ /usr/share/zookeeper/bin/zkCli.sh -server $(hostname):2181
/usr/share/zookeeper/bin/zkCli.sh: line 39: : command not found

Line 39 contains $JAVA, which is not set anywhere in 3.4.9. It was previously set in 3.4.5 in /etc/zookeeper/conf_example/environment and /usr/share/zookeeper/bin/zkEnv.sh

Either $JAVA needs to be declared, or it needs to use the env detection as provided by upstream.

http://http.debian.net/debian/pool/main/z/zookeeper/zookeeper_3.4.9.orig.tar.xz
zookeeper_3.4.9.orig.tar\zookeeper-3.4.9\bin\zkEnv.sh says in part:
if [ "$JAVA_HOME" != "" ]; then
  JAVA="$JAVA_HOME/bin/java"
else
  JAVA=java
fi


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20160929/b103c855/attachment.html>


More information about the pkg-java-maintainers mailing list