If you want it to wait indefinitely I think for that setting you would just have to just go with a high value.
On Mon, Nov 5, 2012 at 3:59 PM, Dmitri Priimak < prii...@highwire.stanford.edu> wrote: > Hi. > > I have a simple client that send data to the kafka broker. What I would > like to > do is for it (client) to wait indefinitely for zookeeper to come up. My > understanding > is that this behavior is controlled by connection property > zk.connectiontimeout.ms > Its default value it 6000. I tried setting it to 0 or -1, hoping that it > would mean "wait > indefinitely", but I get exception saying that this is an invalid value. > Thus I left only > with choice of setting it to Integer.MAX_VALUE. Is that the right strategy > or there > is some other way to accomplish this? > > -- > Dmitri Priimak > >