Debezium报错处理系列六:A slave with the same server_uuid/server_id as this slave has connected to the master
一、debezium报错
- Caused by: io.debezium.DebeziumException: A slave with the same server_uuid/server_id as this slave has connected to the master; the first event ‘mysql3306.001798’ at 156, the last event read from ‘/data/mysql3306/log/mysql3306.001798’ at 125, the last byte read from ‘/data/mysql3306/log/mysql3306.001798’ at 156. Error code: 1236;
二、报错产生原因
- “database.server.id”: “1030131”,
- connector有重复的server_id,需要保证每个connector对应唯一的server_id
- database.server.id有重复会导致原来使用这个server_id的connector报错
三、报错解决方法
- 修改报错conn