TiCDC Task Startup Failure

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: TiCDC启动任务失败

| username: mxd-321

TiCDC encountered an error when starting a task to send to Kafka. The error is as follows. Can someone take a look?

| username: TiDBer_小阿飞 | Original post link

Is it deployed on an external network?
Can you show the CDC configuration file?

| username: 像风一样的男子 | Original post link

There might be an issue with your Kafka configuration. Check the advertised.listeners setting.

| username: 小龙虾爱大龙虾 | Original post link

The port is not accessible.

| username: TiDBer_Leon | Original post link

Which configuration file? If it’s changefeed, only these are configured.
image

| username: TiDBer_小阿飞 | Original post link

The configuration file scale-out.yml
cdc_servers:

| username: TiDBer_Leon | Original post link

listeners=PLAINTEXT://192.168.206.191:9092
advertised.listeners=PLAINTEXT://bigdata001.bdmstest.com:9092

| username: TiDBer_Leon | Original post link

scale-out.yml

| username: 像风一样的男子 | Original post link

So where did you get this 103 external network address from? Configured in the hosts file?

| username: TiDBer_Leon | Original post link

It’s quite confusing. CDC and Kafka are supposed to be under the same gateway, and the ports are all open. I don’t know how this external network address came up.

| username: TiDBer_小阿飞 | Original post link

–The sink URI is definitely correct

| username: TiDBer_Leon | Original post link

It looks fine.

| username: dba远航 | Original post link

Try using telnet to check if the port 9092 on 192.168.206.191 is accessible.

| username: TiDBer_小阿飞 | Original post link

So, is that external IP address 103.224.182.210 the address of your WIFI? Are both the wireless network card and the wired network card enabled at the same time?

| username: TiDBer_Leon | Original post link

After changing the Kafka version, there were no more issues.
TiCDC version: 5.0.4. Changing the Kafka version from 2.12-2.6.3 to 2.11-2.0.1 resolved the problem.

| username: TiDBer_小阿飞 | Original post link

Haha! You can organize it and write an article, a guide to avoiding pitfalls.

| username: Billmay表妹 | Original post link

Then it should be a compatibility issue~

I guess the new version of Kafka is only compatible with the new version of TiDB.

| username: mxd-321 | Original post link

Yes, that’s correct. Another question, is the official documentation no longer maintained for versions below 6.5?