开发者社区 问答 正文

报错:ConnectException: A slave with the same server_

已解决

报错:ConnectException: A slave with the same server_uuid/server_id as this slave has connected to the master

展开
收起
阿里云服务支持 2022-12-12 10:33:49 184 分享 版权
1 条回答
写回答
取消 提交回答
  • 官方回答

    出现这种错误是 作业里使用的 server id 和其他作业或其他同步工具使用的server id 冲突了,server id 需要全局唯一,server id 是一个int类型整数。 在 CDC 2.x 版本中,source 的每个并发都需要一个server id,建议合理规划好server id,比如作业的 source 设置成了四个并发,可以配置 'server-id' = '5001-5004', 这样每个 source task 就不会冲突了。

    2022-12-12 10:35:47
    赞同 展开评论