Is it possible to run the zkCli.sh ls / as ls / or get / from bash directly without going into the zookeeper shell? I am using Zookeeper version 3.4.6-1569965.
For example, something like this:
$ ./zkCli.sh get /
I can only do this after connecting to the zookeeper shell and then running get / from there, as shown below:
$ ./zkCli.sh Connecting to localhost:2181 Welcome to ZooKeeper! WATCHER:: WatchedEvent state:AuthFailed type:None path:null JLine support is enabled WATCHER:: WatchedEvent state:SyncConnected type:None path:null [zk: localhost:2181(CONNECTED) 0] get / []
source share