Bug#1092831: zookeeper: zkCli.sh line editing broken

Christoph Anton Mitterer calestyo at scientia.org
Sun Jan 12 05:49:51 GMT 2025


Source: zookeeper
Version: 3.8.0-11+deb12u1
Severity: normal


Hey.

Unfortunately I cannot test this right now with the newer
version in testing/sid, but simply by looking at the dependencies
I’d say it’s also broken.

zkCli.sh used to have a prompt and line editing capabilities,
which however no longer work (since quuuiiiite a while).

It should look like shown here:
https://zookeeper.apache.org/doc/current/zookeeperCLI.html
i.e. a prompt as in:
[zkshell: 12] addauth digest zookeeper:admin

but in Debian (stable) I get:
```
# /usr/share/zookeeper/bin/zkCli.sh
Connecting to localhost:2181
log4j:WARN No appenders could be found for logger (org.apache.zookeeper.ZooKeeper).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Welcome to ZooKeeper!
JLine support is disabled

WATCHER::

WatchedEvent state:SyncConnected type:None path:null

```

I can type commands and they work, but the "prompt" is missing.


I’d guess the culprit is the:
   JLine support is disabled
line.

Installed all of libjline-java, libjline2-java and libjline3-java manually
and added the to the classpath of zkCli.sh, but still didn’t get it to work.
Not sure why. I think it wants libjline2-java and with that it even says
in one line
   JLine support is enabled
but a few lines later it disables it again.


Thanks,
Chris.


More information about the pkg-java-maintainers mailing list