Broker may not be available

785 views
Skip to first unread message

Oğuzhan

unread,
Sep 7, 2022, 8:06:23 AM9/7/22
to debezium
My docker.compose.yml file is shown below. When I up compose file. Debezium gives that error.

version: '2'
services:
zookeeper:
container_name: zookeeper
image: debezium/zookeeper:1.9
ports:
- 2181:2181
- 2888:2888
- 3888:3888

kafka:
container_name: kafka
image: debezium/kafka:1.9
ports:
- 9092:9092
links:
- zookeeper
environment:
ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:29092,PLAINTEXT_HOST://kafka:9092

volumes:
- $PWD/list-topic.sh:/kafka/list-topic.sh
- $PWD/consume-persons.sh:/kafka/consume-persons.sh
- $PWD/install-jq.sh:/kafka/install-jq.sh
- $PWD/connectors/:/kafka/connectors/


postgres:
container_name: postgresql
image: debezium/postgres
ports:
- 5432:5432
environment:
- POSTGRES_DB=debezium
- POSTGRES_USER=user
- POSTGRES_PASSWORD=password

connect:
container_name: debezium
image: debezium/connect:1.9
ports:
- 8083:8083
links:
- kafka
- postgres
environment:
- BOOTSTRAP_SERVER=kafka:9092
- CONFIG_STORAGE_TOPIC=debezium_connect_config
- OFFSET_STORAGE_TOPIC=debezium_connect_offset
- STATUS_STORAGE_TOPIC=debezium_connect_status

Oğuzhan

unread,
Sep 7, 2022, 8:07:02 AM9/7/22
to debezium

debezium    | 2022-09-07 12:00:19,936 INFO   ||  [AdminClient clientId=adminclient-1] Node -1 disconnected.   [org.apache.kafka.clients.NetworkClient]

debezium    | 2022-09-07 12:00:19,937 WARN   ||  [AdminClient clientId=adminclient-1] Connection to node -1 (/0.0.0.0:9092) could not be established. Broker may not be available.   [org.apache.kafka.clients.NetworkClient]


7 Eylül 2022 Çarşamba tarihinde saat 15:06:23 UTC+3 itibarıyla Oğuzhan şunları yazdı:

Chris Cranford

unread,
Sep 7, 2022, 8:19:32 AM9/7/22
to debe...@googlegroups.com, Oğuzhan
Hi,

I believe its "BOOTSTRAP_SERVERS=kafka:9092", notice the plural SERVERS rather than SERVER :).

Chris
--
You received this message because you are subscribed to the Google Groups "debezium" group.
To unsubscribe from this group and stop receiving emails from it, send an email to debezium+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/debezium/055cb6b8-265d-4173-9a91-091966c936ffn%40googlegroups.com.

Message has been deleted

Oğuzhan

unread,
Sep 7, 2022, 8:57:41 AM9/7/22
to debezium
no bro didnt solve that error. I wrote 0.0.0.0 instead of kafka.
still gives me error.

debezium    | 2022-09-07 12:55:40,369 WARN   ||  [AdminClient clientId=adminclient-1] Connection to node -1 (/0.0.0.0:9092) could not be established. Broker may not be available.   [org.apache.kafka.clients.NetworkClient]


7 Eylül 2022 Çarşamba tarihinde saat 15:19:32 UTC+3 itibarıyla Chris Cranford şunları yazdı:
Reply all
Reply to author
Forward
0 new messages