Can't connect to debezium kafka from docker host

2,291 views
Skip to first unread message

Igor Kustov

unread,
Jun 3, 2019, 8:54:46 AM6/3/19
to debezium
Hi! I'm stepping through the tutorial. So on my machine (Win 10), I ran:
$ docker run -it --rm --name kafka -p 9092:9092 --link zookeeper:zookeeper debezium/kafka:0.9

When I try to connect to this kafka from docker host I'm getting: 

[Consumer clientId=consumer-8, groupId=testGroup] Connection to node 2147483646 could not be established. Broker may not be available.
[Consumer clientId=consumer-8, groupId=testGroup] Group coordinator 172.17.0.3:9092 (id: 2147483646 rack: null) is unavailable or invalid, will attempt rediscovery 

And I need to consume table topic. Other containers work normally. Firewall is off. 

Igor Kustov

unread,
Jun 3, 2019, 8:57:14 AM6/3/19
to debezium
It actually worked for approximately 10 minutes at my first attempt and then went down 
Tried also 
netcfg -d with no success

понедельник, 3 июня 2019 г., 15:54:46 UTC+3 пользователь Igor Kustov написал:

Gunnar Morling

unread,
Jun 3, 2019, 9:59:59 AM6/3/19
to debezium
Please see the FAQ here: https://debezium.io/docs/faq/#how_to_connect_to_kafka_when_using_the_debezium_docker_images. You'll need to set ADVERTISED_HOST_NAME to your host's address.

--Gunnar
Reply all
Reply to author
Forward
0 new messages