开发者社区> 问答> 正文

canal对接RocketMQ集群模式,使用partitionHash, binlog数据一直投递到

环境信息

canal version 1.1.4 mysql version 5.6.7

问题描述

Canal 对接 RocketMQ集群环境(2主2从集群,Broker a 和 Broker b),instance.properties配置信息如下 canal.mq.topic=migrate-my-test

主题路由

#canal.mq.dynamicTopic=mytest1.user,mytest2..,...* canal.mq.partition=0

分区配置

#topic默认队列8 canal.mq.partitionsNum=8 canal.mq.partitionHash=cp_test.my_test:id^name,cp_test.my_test_2:id,cp_test.my_test_3:id,cp_test.my_test_4:id,cp_test.my_test_5:id,cp_test.my_test_6:id 解析的Binlog数据一直投递到Broker a, Broker b中无数据

期待结果

根据表名partitionHash, 不同的表可以分散到不现的Broker, 数据在RocketMQ上分布均匀

实际执行情况

解析的Binlog数据一直投递到Broker a, Broker b中无数据

原提问者GitHub用户authorXiao

展开
收起
山海行 2023-04-27 16:10:56 129 0
1 条回答
写回答
取消 提交回答
  • 印象中有修复过类似问题,先考虑升级下1.1.5版本吧

    原回答者GitHub用户agapple

    2023-04-27 22:11:55
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
RocketMQ Client-GO 介绍 立即下载
RocketMQ Prometheus Exporter 打造定制化 DevOps 平台 立即下载
基于 RocketMQ Prometheus Exporter 打造定制化 DevOps 平台 立即下载