我在MySQL表上添加TRIGGERS后,Debezium停止工作。
这是我在连接器日志上得到的内容
Jun 29 16:29:24 log.gxapp-crm.com sh[4827]: org.apache.kafka.connect.errors.ConnectException: no viable alternative at input 'CREATE DEFINER=`root`@`%` TRIGGER `gxapp_customer_db.BCAVAActivationApprovedReports_AI` AFTER INSERT ON `BCAVAActivationApprovedReports` FOR EACH ROW BEGIN DECLARE has_error BOOLEAN DEFAULT 0; DECLARE duplicate_key CONDITION FOR 1062; DECLARE foreign_key_violated CONDITION FOR 1216;
DECLARE revision_inc INT'
Jun 29 16:29:24 log.gxapp-crm.com sh[4827]: at io.debezium.connector.mysql.AbstractReader.wrap(AbstractReader.java:230)
Jun 29 16:29:24 log.gxapp-crm.com sh[4827]: at io.debezium.connector.mysql.AbstractReader.failed(AbstractReader.java:208)
Jun 29 16:29:24 log.gxapp-crm.com sh[4827]: at io.debezium.connector.mysql.BinlogReader.handleEvent(BinlogReader.java:508)
Jun 29 16:29:24 log.gxapp-crm.com sh[4827]: at com.github.shyiko.mysql.binlog.BinaryLogClient.notifyEventListeners(BinaryLogClient.java:1095)
Jun 29 16:29:24 log.gxapp-crm.com sh[4827]: at com.github.shyiko.mysql.binlog.BinaryLogClient.listenForEventPackets(BinaryLogClient.java:943)
Jun 29 16:29:24 log.gxapp-crm.com sh[4827]: at com.github.shyiko.mysql.binlog.BinaryLogClient.connect(BinaryLogClient.java:580)
Jun 29 16:29:24 log.gxapp-crm.com sh[4827]: at com.github.shyiko.mysql.binlog.BinaryLogClient$7.run(BinaryLogClient.java:825)
Jun 29 16:29:24 log.gxapp-crm.com sh[4827]: at java.lang.Thread.run(Thread.java:748)
Jun 29 16:29:24 log.gxapp-crm.com sh[4827]: Caused by: io.debezium.text.ParsingException: no viable alternative at input 'CREATE DEFINER=`root`@`%` TRIGGER `gxapp_customer_db.BCAVAActivationApprovedReports_AI` AFTER INSERT ON `BCAVAActivationApprovedReports` FOR EACH ROW
BEGIN
DECLARE has_error BOOLEAN DEFAULT 0; DECLARE duplicate_key CONDITION FOR 1062; DECLARE foreign_key_violated CONDITION FOR 1216; DECLARE revision_inc INT'
我试图删除连接器并将其重新添加。
这与Trigger函数有什么关系吗? Debezium还不支持吗?