aminaaddd commented on PR #4948:
URL: https://github.com/apache/kafka/pull/4948#issuecomment-2689167200
| ERROR:root:Error:
KafkaError{code=UNKNOWN_TOPIC_OR_PART,val=3,str="Subscribed topic not
available: housing_topic: Broker: Unknown topic or partition"}
i have this problem and i don't know how to solve it.
broker:
image: confluentinc/cp-kafka:latest
container_name: broker1
hostname: broker1
ports:
- "9092:9092" # Port interne du broker
- "29092:29092" # Port pour accès externe
environment:
KAFKA_AUTO_CREATE_TOPICS_ENABLE: "true"
KAFKA_NODE_ID: 1
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP:
CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
KAFKA_ADVERTISED_LISTENERS:
PLAINTEXT://broker1:9092,PLAINTEXT_HOST://localhost:29092
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS: 0
KAFKA_PROCESS_ROLES: broker,controller
KAFKA_CONTROLLER_QUORUM_VOTERS: 1@broker1:29093
KAFKA_LISTENERS:
PLAINTEXT://broker1:9092,CONTROLLER://broker1:29093,PLAINTEXT_HOST://0.0.0.0:29092
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
KAFKA_CONTROLLER_LISTENER_NAMES: CONTROLLER
KAFKA_LOG_DIRS: /tmp/kraft-combined-logs
CLUSTER_ID: "MkU3OEVBNTcwNTJENDM2Qk"
healthcheck:
test: ["CMD", "kafka-broker-api-versions", "--bootstrap-server",
"broker1:9092"]
interval: 10s
timeout: 5s
retries: 5
topic-creator:
image: confluentinc/cp-kafka:latest
container_name: topic-creator
depends_on:
- broker
entrypoint: ["/bin/sh", "-c", "sleep 20 && kafka-topics --create --topic
housing_topic --bootstrap-server broker1:9092 --replication-factor 1
--partitions 1"]
restart: "no"
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]