Re: Ephemeral ports for Kafka broker

2015-11-12 Thread Hemanth Yamijala
Thanks for a quick response. On 12-Nov-2015 16:28, "Gerard Klijs" wrote: > Hi Hemanth, it was introduced on 04/04/2015 at github, so after the 0.8.2.0 > version, it will be part of the 0.9.0.0 release. > > On Thu, Nov 12, 2015 at 8:39 AM Hemanth Yamijala

Re: Ephemeral ports for Kafka broker

2015-11-11 Thread Ewen Cheslack-Postava
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

Re: Ephemeral ports for Kafka broker

2015-11-11 Thread Hemanth Yamijala
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

Ephemeral ports for Kafka broker

2015-11-10 Thread Hemanth Yamijala
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