Thanks, Ewen. I did know passing 0 would work, but didn't find an API to get back the bound port. Which version of Kafka library is that in? We are using 0.8.2.0 Kafka and it doesn't seem to be available there?
Thanks Hemanth On Wed, Nov 11, 2015 at 11:39 PM, Ewen Cheslack-Postava <[email protected]> wrote: > Passing 0 as the port should let you do this. This is how we get the tests > to work without assuming a specific port is available. The > KafkaServer.boundPort(SecurityProtocol) method can be used to get the port > that was bound. > > -Ewen > > On Tue, Nov 10, 2015 at 11:23 PM, Hemanth Yamijala <[email protected]> > wrote: > > > Hello, > > > > Is there any way to specify that the Kafka broker should bind to any > > available port. This could be used, maybe for an embedded Kafka instance, > > etc. > > > > Thanks > > Hemanth > > > > > > -- > Thanks, > Ewen >
