運河のバージョンは次のとおりです: 1.1.5
Canal 同期テーブル データ エラー:
[pool-40-thread-1] エラー caotter.canal.adapter.launcher.loader.AdapterProcessor - java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.RuntimeException: java.lang.RuntimeException: ターゲット列: ID が一致しません
java.lang.RuntimeException: java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.RuntimeException: java.lang.RuntimeException:ターゲット列: ID が一致しません
問題分析
主な理由は、ターゲット ライブラリ テーブルが一致せず、 targetTable: 項目が test001.tt9 に設定されていることです。
dataSourceKey: defaultDS
宛先: canal_1221
groupId: g1
outerAdapterKey: mysql1
並行: true
dbMapping:
データベース: テスト
テーブル: tt9
targetTable: tt9
targetPk:
id: id
mapAll: true
# targetColumns:
# id:
# name:
# role_id:
# c_time:
# test1:
etlCondition: "where c_time>={}"
commitBatch: 3000 # 大量提交的大小
# targetTable: tb_user #The table name of the target data source , which cannot be set as the target database .テーブル名、ターゲット ライブラリは、outerAdapterで表されるライブラリ名のみにすることができます