Skip to content

Unable to consume/produce data in Kafka Docker Swarm Mode #376

@TechDevCode

Description

@TechDevCode

I am deploying kafka cluster on swarm docker cluster. I am running example at https://github.com/wurstmeister/kafka-docker/blob/master/docker-compose-swarm.yml with deploy mode as "global". But in Kafka config values I get null advertized hostname as below:

[2018-08-02 09:13:26,029] INFO KafkaConfig values:
advertised.host.name = null
advertised.listeners = INSIDE://:9092,OUTSIDE://quad.cmp.com:9094
advertised.port = null
alter.config.policy.class.name = null
alter.log.dirs.replication.quota.window.num = 11
alter.log.dirs.replication.quota.window.size.seconds = 1
authorizer.class.name =
auto.create.topics.enable = true
auto.leader.rebalance.enable = true
background.threads = 10
broker.id = -1
broker.id.generation.enable = true
broker.rack = null
client.quota.callback.class = null
compression.type = producer

Due to this my other services are unable to produce data and consume data from these kafka brokers.
In my kafka consumer & producer settings I give brokers ip addresses as : hostname_of_machine1:9092, hostname_of_machine2:9092 for reading from and producing to these kafka brokers.

What is the issue?

Thanks,
Rishikesh

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions