There is in my cluster a Zookeeper server (I know its IP) which stores my data. I cat get that data using a custom Java application.
Is there any possibility to get the data from
I'm looking for something like
echo 'stat' | nc 10.xxx.yyy.zzz 2181
echo 'get /a/b' | nc .....
ZooKeeper is a complicated protocol for reasons innately linked to its core purpose: A protocol-compliant client is required to communicate with multiple servers to ensure that the answer it receives is up-to-date.
Moreover, the protocol in question involves packed binary structures, making it inamenable to implementation in native shell.
I would suggest:
ncto be used from your scripts elsewhere.