mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
Add flat message support to rocketmq
This commit is contained in:
@@ -57,6 +57,7 @@ public class CanalLauncher {
|
||||
|
||||
CanalMQProducer canalMQProducer = null;
|
||||
String serverMode = controller.getProperty(properties, CanalConstants.CANAL_SERVER_MODE);
|
||||
serverMode = "rocketmq";
|
||||
if (serverMode.equalsIgnoreCase("kafka")) {
|
||||
canalMQProducer = new CanalKafkaProducer();
|
||||
} else if (serverMode.equalsIgnoreCase("rocketmq")) {
|
||||
|
||||
@@ -8,7 +8,7 @@ bufferMemory: 33554432
|
||||
canalBatchSize: 50
|
||||
# Canal get数据的超时时间, 单位: 毫秒, 空为不限超时
|
||||
canalGetTimeout: 100
|
||||
flatMessage: true
|
||||
flatMessage: false
|
||||
|
||||
canalDestinations:
|
||||
- canalDestination: example
|
||||
|
||||
Reference in New Issue
Block a user