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


Reply via email to