You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by Gino Bustelo <gi...@bustelos.com> on 2014/01/17 22:26:11 UTC

Problems with Kafka in docker with advertised.host.name

Using kafka 0.8.0

I'm building my own simple docker container for Kafka. I'm trying to set
advertised.host.name to the docker host ip in order to expose Kafka broker
to the outside world. When I set the property in server.properties as such;

advertised.host.name=192.168.22.10

I get the following WARN in the console;

[2014-01-17 20:53:27,900] WARN Property advertised.port is not valid
(kafka.utils.VerifiableProperties)

When I check zookeeper, the broker is registering itself using the docker
hostname. I've also tested setting the advertised.port and I see a similar
warning and it is also ignored.

About to try https://github.com/signalfuse/docker-kafka, but I don's see
anything specially different there from what I'm doing.

Thanks in advance for any help!
Gino

Re: Problems with Kafka in docker with advertised.host.name

Posted by Joel Koshy <jj...@gmail.com>.
I don't think that feature made it into the 0.8.0 release. Can you try
the latest version on trunk?

Thanks,

Joel

On Fri, Jan 17, 2014 at 03:26:11PM -0600, Gino Bustelo wrote:
> Using kafka 0.8.0
> 
> I'm building my own simple docker container for Kafka. I'm trying to set
> advertised.host.name to the docker host ip in order to expose Kafka broker
> to the outside world. When I set the property in server.properties as such;
> 
> advertised.host.name=192.168.22.10
> 
> I get the following WARN in the console;
> 
> [2014-01-17 20:53:27,900] WARN Property advertised.port is not valid
> (kafka.utils.VerifiableProperties)
> 
> When I check zookeeper, the broker is registering itself using the docker
> hostname. I've also tested setting the advertised.port and I see a similar
> warning and it is also ignored.
> 
> About to try https://github.com/signalfuse/docker-kafka, but I don's see
> anything specially different there from what I'm doing.
> 
> Thanks in advance for any help!
> Gino


Re: Problems with Kafka in docker with advertised.host.name

Posted by Gino Bustelo <gi...@bustelos.com>.
Thanks Joel… I just noticed that
signalfuse/docker-kafka<https://github.com/signalfuse/docker-kafka> is
pulling from git and building.


On Fri, Jan 17, 2014 at 3:26 PM, Gino Bustelo <gi...@bustelos.com> wrote:

> Using kafka 0.8.0
>
> I'm building my own simple docker container for Kafka. I'm trying to set
> advertised.host.name to the docker host ip in order to expose Kafka
> broker to the outside world. When I set the property in server.properties
> as such;
>
> advertised.host.name=192.168.22.10
>
> I get the following WARN in the console;
>
> [2014-01-17 20:53:27,900] WARN Property advertised.port is not valid
> (kafka.utils.VerifiableProperties)
>
> When I check zookeeper, the broker is registering itself using the docker
> hostname. I've also tested setting the advertised.port and I see a similar
> warning and it is also ignored.
>
> About to try https://github.com/signalfuse/docker-kafka, but I don's see
> anything specially different there from what I'm doing.
>
> Thanks in advance for any help!
> Gino
>