mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
模块化mq connector (#2562)
* add connector module, add kafka producer connector module for server * add rocketMQ producer connector module for server * add rabbitMQ producer connector module for server * optimize code, add annotation * add canal message consumer connector for canal-adapter module
This commit is contained in:
@@ -7,20 +7,45 @@ spring:
|
||||
default-property-inclusion: non_null
|
||||
|
||||
canal.conf:
|
||||
mode: tcp # kafka rocketMQ
|
||||
canalServerHost: 127.0.0.1:11111
|
||||
# zookeeperHosts: slave1:2181
|
||||
# mqServers: 127.0.0.1:9092 #or rocketmq
|
||||
# flatMessage: true
|
||||
batchSize: 500
|
||||
mode: tcp #tcp kafka rocketMQ rabbitMQ
|
||||
flatMessage: true
|
||||
zookeeperHosts:
|
||||
syncBatchSize: 1000
|
||||
retries: 0
|
||||
timeout:
|
||||
accessKey:
|
||||
secretKey:
|
||||
username:
|
||||
password:
|
||||
vhost:
|
||||
consumerProperties:
|
||||
# canal tcp consumer
|
||||
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:
|
||||
|
||||
# srcDataSources:
|
||||
# defaultDS:
|
||||
# url: jdbc:mysql://127.0.0.1:3306/mytest?useUnicode=true
|
||||
|
||||
Reference in New Issue
Block a user