I believe it depends which version of netcat you're using, see the
following for background:
https://issues.apache.org/jira/browse/ZOOKEEPER-737

Regards,

Patrick

On Thu, Oct 29, 2020 at 6:18 AM Debraj Manna <subharaj.ma...@gmail.com>
wrote:

> Anyone any thoughts on this one? Same has been asked in stackoverflow also
>
>
> https://stackoverflow.com/questions/64587307/correct-way-to-check-zookeepers-running-mode
>
> On Wed, Oct 28, 2020 at 9:37 PM Debraj Manna <subharaj.ma...@gmail.com>
> wrote:
>
> > Hi
> >
> > Can someone let me know what is the recommended way to check if zookeeper
> > is running via netcat?
> >
> > The documentation
> > <https://zookeeper.apache.org/doc/r3.5.2-alpha/zookeeperAdmin.html>
> > states echo "isro" | nc localhost 2181 .
> >
> > But in few places it is recommended to use -q with netcat
> >
> > https://stackoverflow.com/a/28424409/785523
> >
> > Can someone let me know if -q is needed ?
> >
> >
> >    - Zookeeper Version 3.4.13
> >    - OS - Ubuntu 18
> >
> >
>

Reply via email to