Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: [CDC:ErrKafkaNewSaramaProducer]new sarama producer: kafka: client has run out of available brokers to talk to (Is your cluster reachable?)
【TiDB Usage Environment】Production\Testing Environment\POC
【TiDB Version】5.4.1
【Encountered Issues】
TICDC connecting to downstream Kafka, where the downstream Kafka is an OEM version (2.3.0-oem-7.0.1) rather than the open-source version, mainly encountering the following two issues:
- If the Kafka version is configured to the corresponding open-source version of the OEM (e.g., 2.3.0), it reports an error “[CDC:ErrKafkaNewSaramaProducer]new sarama producer: kafka: client has run out of available brokers to talk to (Is your cluster reachable?)”
- If the Kafka version is configured to be exactly the same as the downstream OEM version (e.g., 2.3.0-oem-7.0.1), it reports an error “[CDC:ErrKafkaInvalidVersion]invalid kafka version: invalid version
2.3.0-oem-7.0.1
”
【Reproduction Path】Operations performed that led to the issue
【Issue Phenomenon and Impact】
【Attachments】
- Relevant logs, configuration files, Grafana monitoring (https://metricstool.pingcap.com/)
- TiUP Cluster Display information
- TiUP Cluster Edit config information
- TiDB-Overview monitoring
- Corresponding module’s Grafana monitoring (if any, such as BR, TiDB-binlog, TiCDC, etc.)
- Corresponding module logs (including logs from 1 hour before and after the issue)
For questions related to performance optimization or troubleshooting, please download the script and run it. Please select all and copy-paste the terminal output results for upload.