Open wsm12138 opened 9 months ago
Hope to get your reply soon, thank you
验证结论:
[root@DB2 canal.adapter]# cat conf/application.yml | grep -v ^#
server:
port: 8081
spring:
jackson:
date-format: yyyy-MM-dd HH:mm:ss
time-zone: GMT+8
default-property-inclusion: non_null
canal.conf: mode: tcp #tcp kafka rocketMQ rabbitMQ flatMessage: true zookeeperHosts: syncBatchSize: 1000 retries: -1 timeout: accessKey: secretKey: consumerProperties:
canal.tcp.server.host: 127.0.0.1:11111
canal.tcp.zookeeper.hosts:
canal.tcp.batch.size: 500
canal.tcp.username:
canal.tcp.password:
# kafka consumer
kafka.bootstrap.servers: 127.0.0.1:9092
kafka.enable.auto.commit: false
kafka.auto.commit.interval.ms: 1000
kafka.auto.offset.reset: latest
kafka.request.timeout.ms: 40000
kafka.session.timeout.ms: 30000
kafka.isolation.level: read_committed
kafka.max.poll.records: 1000
# rocketMQ consumer
rocketmq.namespace:
rocketmq.namesrv.addr: 127.0.0.1:9876
rocketmq.batch.size: 1000
rocketmq.enable.message.trace: false
rocketmq.customized.trace.topic:
rocketmq.access.channel:
rocketmq.subscribe.filter:
# rabbitMQ consumer
rabbitmq.host:
rabbitmq.virtual.host:
rabbitmq.username:
rabbitmq.password:
rabbitmq.resource.ownerId:
canalAdapters:
[root@DB2 canal.adapter]# cat conf/rdb/mytest_user.yml
dataSourceKey: defaultDS
destination: example
groupId: g1
outerAdapterKey: mysql1 # 需要跟上面保持一致
concurrent: true
dbMapping:
mirrorDb: true
# 配置数据库,需要提前创建
database: canal
[root@DB2 canal.adapter]#
你好,请问你最终怎么解决的呢?我就是希望在同实例下不同库名做处理。
environment
Issue Description
Sysbench ——> MySQL source ——> canal.deployer ——> canal.adapter ——> MySQL target
MySQL 源端建表、插入数据、建索引正常
MySQL 目标端建表、建索引正常、插入数据失败 —— canal.deployer & canal.adapter 无报错
Steps to reproduce
canal.deployer 配置
canal.adapter 配置
Expected behaviour
source & target 端,数据一致
Actual behaviour
If there is an exception, please attach the exception trace:
deployer log
adapter log