canal adapter1.14全量同步不成功

aamkag61  于 2022-12-31  发布在  其他
关注(0)|答案(1)|浏览(420)

canal adapter1.14 mysql到es增量同步正常,全量同步不成功。
配置文件如下:
application.yml
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: kafka
canalServerHost: 192.168.0.98:11111
zookeeperHosts: 192.168.0.97:2181,192.168.0.98:2181,192.168.0.99:2181
mqServers: 192.168.0.97:9092,192.168.0.98:9092,192.168.0.99:9092
flatMessage: true
batchSize: 500
syncBatchSize: 1000
retries: 0
timeout:
accessKey:
secretKey:
srcDataSources:
defaultDS:
url: jdbc:mysql://192.168.1.226:3306/demodb?useUnicode=true
username: canaladmin
password: 123456789
canalAdapters:

  • instance: example # canal instance Name or mq topic name
    groups:

  • groupId: g1
    outerAdapters:

  • name: logger

  • name: es
    key: db1Key
    hosts: 192.168.1.226:9300
    properties:
    cluster.name: my-application

curl http://127.0.0.1:8081/etl/es/test.yml -X POST
{"succeeded":false,"errorMessage":"Task not found"}

jrcvhitl

jrcvhitl1#

路径不对,wiki挺坑的,没有写,正确的路径是需要加上outerAdapterKey的,如下:
curl http://127.0.0.1:8081/etl/es/mysql1/test.yml -X POST

相关问题