mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
merge code and fixed issue #2755 #2756 #2735 #2714 #2711 #2710 #2616 #2602 #2585 #2565 #2935 #2434 #2623 #2418 #2387
This commit is contained in:
@@ -2,5 +2,5 @@
|
||||
|
||||
args=$@
|
||||
|
||||
bash stop.sh $args
|
||||
bash startup.sh $args
|
||||
sh stop.sh $args
|
||||
sh startup.sh $args
|
||||
@@ -443,11 +443,11 @@ public class CanalController {
|
||||
}
|
||||
config.setManagerAddress(managerAddress);
|
||||
}
|
||||
} else if (config.getMode().isSpring()) {
|
||||
String springXml = getProperty(properties, CanalConstants.getInstancSpringXmlKey(destination));
|
||||
if (StringUtils.isNotEmpty(springXml)) {
|
||||
config.setSpringXml(springXml);
|
||||
}
|
||||
}
|
||||
|
||||
String springXml = getProperty(properties, CanalConstants.getInstancSpringXmlKey(destination));
|
||||
if (StringUtils.isNotEmpty(springXml)) {
|
||||
config.setSpringXml(springXml);
|
||||
}
|
||||
|
||||
return config;
|
||||
|
||||
@@ -218,11 +218,6 @@ public class CanalAdminController implements CanalAdmin {
|
||||
return FileUtils.readFileFromOffset("../logs/" + destination + "/" + fileName, lines, "UTF-8");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String instanceMeta(String destination, String fileName) {
|
||||
return FileUtils.readFileFromOffset("../conf/" + destination + "/" + fileName, 100, "UTF-8");
|
||||
}
|
||||
|
||||
private InstanceAction getInstanceAction(String destination) {
|
||||
Map<InstanceConfig.InstanceMode, InstanceConfigMonitor> monitors = canalStater.getController()
|
||||
.getInstanceConfigMonitors();
|
||||
|
||||
@@ -109,19 +109,21 @@ canal.instance.global.spring.xml = classpath:spring/file-instance.xml
|
||||
##################################################
|
||||
######### MQ Properties #############
|
||||
##################################################
|
||||
canal.mq.flat.message = true
|
||||
canal.mq.database.hash = true
|
||||
canal.mq.parallel.thread.size = 8
|
||||
canal.mq.canal.batch.size = 50
|
||||
canal.mq.canal.fetch.timeout = 100
|
||||
# Set this value to "cloud", if you want open message trace feature in aliyun.
|
||||
canal.mq.access.channel = local
|
||||
|
||||
# aliyun ak/sk , support rds/mq
|
||||
canal.aliyun.accessKey =
|
||||
canal.aliyun.secretKey =
|
||||
canal.aliyun.uid=
|
||||
|
||||
canal.mq.flatMessage = true
|
||||
canal.mq.canalBatchSize = 50
|
||||
canal.mq.canalGetTimeout = 100
|
||||
# Set this value to "cloud", if you want open message trace feature in aliyun.
|
||||
canal.mq.accessChannel = local
|
||||
|
||||
canal.mq.database.hash = true
|
||||
canal.mq.send.thread.size = 30
|
||||
canal.mq.build.thread.size = 8
|
||||
|
||||
##################################################
|
||||
######### Kafka #############
|
||||
##################################################
|
||||
@@ -135,9 +137,9 @@ kafka.buffer.memory = 33554432
|
||||
kafka.max.in.flight.requests.per.connection = 1
|
||||
kafka.retries = 0
|
||||
|
||||
canal.mq.kafka.kerberos.enable = false
|
||||
canal.mq.kafka.kerberos.krb5.file = "../conf/kerberos/krb5.conf"
|
||||
canal.mq.kafka.kerberos.jaas.file = "../conf/kerberos/jaas.conf"
|
||||
kafka.kerberos.enable = false
|
||||
kafka.kerberos.krb5.file = "../conf/kerberos/krb5.conf"
|
||||
kafka.kerberos.jaas.file = "../conf/kerberos/jaas.conf"
|
||||
|
||||
##################################################
|
||||
######### RocketMQ #############
|
||||
|
||||
@@ -40,7 +40,7 @@ canal.instance.enableDruid=false
|
||||
# table regex
|
||||
canal.instance.filter.regex=.*\\..*
|
||||
# table black regex
|
||||
canal.instance.filter.black.regex=
|
||||
canal.instance.filter.black.regex=mysql\\.slave_.*
|
||||
# table field filter(format: schema1.tableName1:field1/field2,schema2.tableName2:field1/field2)
|
||||
#canal.instance.filter.field=test1.t_product:id/subject/keywords,test2.t_company:id/name/contact/ch
|
||||
# table field black filter(format: schema1.tableName1:field1/field2,schema2.tableName2:field1/field2)
|
||||
|
||||
Reference in New Issue
Block a user