java - Debezium无法解析DDL(创建proc)语句mysql connector

时间:2017-10-10 10:00:14

标签: mysql apache-kafka apache-kafka-connect debezium

我已经在Kafka connect中集成了debezium连接器来流式传输我的mysql数据库更改。对于某些过程,它无法读取binlog文件。有什么建议或解决方法吗?坚持这个问题。我可以在mysql中指定不将ddl日志放到binlog文件中吗?

2017-10-10 15:20:22,314 ERROR  MySQL|dbStreamer|binlog  Failed due to error: Error processing binlog event            [io.debezium.connector.mysql.BinlogReader]
org.apache.kafka.connect.errors.ConnectException: Unexpected exception (One or more errors trying to parse statement at line 1, column 8) parsing at line 1, column 8
at io.debezium.connector.mysql.AbstractReader.wrap(AbstractReader.java:164)
at io.debezium.connector.mysql.AbstractReader.failed(AbstractReader.java:142)
at io.debezium.connector.mysql.BinlogReader.handleEvent(BinlogReader.java:332)
at com.github.shyiko.mysql.binlog.BinaryLogClient.notifyEventListeners(BinaryLogClient.java:902)
at com.github.shyiko.mysql.binlog.BinaryLogClient.listenForEventPackets(BinaryLogClient.java:760)
at com.github.shyiko.mysql.binlog.BinaryLogClient.connect(BinaryLogClient.java:472)
at com.github.shyiko.mysql.binlog.BinaryLogClient$5.run(BinaryLogClient.java:657)
at java.lang.Thread.run(Thread.java:748)
Caused by: io.debezium.text.ParsingException: Unexpected exception (One or more errors trying to parse statement at line 1, column 8) parsing at line 1, column 8
at io.debezium.relational.ddl.DdlParser.parsingFailed(DdlParser.java:660)
at io.debezium.relational.ddl.DdlParser.parse(DdlParser.java:294)
at io.debezium.relational.ddl.DdlParser.parse(DdlParser.java:267)
at io.debezium.connector.mysql.MySqlSchema.applyDdl(MySqlSchema.java:354)
at io.debezium.connector.mysql.BinlogReader.handleQueryEvent(BinlogReader.java:461)
at io.debezium.connector.mysql.BinlogReader.handleEvent(BinlogReader.java:319)
... 5 more
Caused by: One or more errors trying to parse statement at line 1, column 8
io.debezium.text.ParsingException: Expecting VIEW at line 1, column 35 but found 'PROCEDURE': =`root`@`localhost`  ===>> PROCEDURE `azuga`.`c
io.debezium.text.ParsingException: No more content

1 个答案:

答案 0 :(得分:0)

你需要在issue tracker.中提出一个问题DDL解析器能够处理(跳过)创建过程的语句,但并不完美。如果您可以提供有问题的代码,我们可以解析器。