Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: CDC创建kafka changefeed失败
[TiDB Version] TiDB v6.1.1
[Problem Encountered] Failed to create CDC changefeed using tiup ctl, downstream is Kafka
[CDC:ErrKafkaNewSaramaProducer] new sarama producer: dial tcp: lookup kafka03 on [::1]:53: read udp [::1]:35071->[::1]:53: read: connection refused
[Reproduction Path]
tiup ctl:v6.1.1 cdc changefeed create --pd=“http://172.22.21.4:2379” --sink-uri=“kafka://172.21.91.1:9092,172.21.91.2:9092,172.21.91.3:9092/tidb-default-topic?protocol=canal-json&kafka-version=2.2.1&partition-num=3&replication-factor=1&max-message-bytes=104857600&auto-create-topic=true” --changefeed-id=“kafka-changefeed” --config changefeed.toml
[Problem Phenomenon and Impact]
Error:
[CDC:ErrKafkaNewSaramaProducer] new sarama producer: dial tcp: lookup kafka03 on [::1]:53: read udp [::1]:35071->[::1]:53: read: connection refused
kafka03 is the hostname of a machine in the Kafka cluster.