我试图将Maxwell的守护程序连接到MariaDB以实现CDC。这是命令:
./maxwell --user='maxwell' --password='123' --host='127.0.0.1' --port=3307 --include_dbs=my_db --include_tables=my_table --producer=stdout
起初,我收到了以下警告:
16:13:02,775 WARN BinlogConnectorReplicator - 事务中未处理的QueryEvent:QueryEventData {threadId = 0,executionTime = 0,errorCode = 0,database ='',sql =' #Dummy event替换奴隶无法处理的事件类型160。 '}
但我能够将信息打印到stdout并通过Kafka经纪人播放,所以一切都很好。
之后,我重新启动了服务并重复了这些步骤,但这次我省略了--include_tables=my_table
标志,并在运行Maxwell的守护程序时遇到以下错误:
16:22:49,713 ERROR TaskManager - 原因: java.lang.RuntimeException:java.io.IOException:未知的值类型代码' 7B' 在com.zendesk.maxwell.schema.columndef.JsonColumnDef.asJSON(JsonColumnDef.java:27)〜[maxwell-1.11.0.jar:?] 在com.zendesk.maxwell.replication.BinlogConnectorEvent.writeData(BinlogConnectorEvent.java:104)〜[maxwell-1.11.0.jar:?] 在com.zendesk.maxwell.replication.BinlogConnectorEvent.buildRowMap(BinlogConnectorEvent.java:152)〜[maxwell-1.11.0.jar:?] 在com.zendesk.maxwell.replication.BinlogConnectorEvent.jsonMaps(BinlogConnectorEvent.java:164)〜[maxwell-1.11.0.jar:?] 在com.zendesk.maxwell.replication.BinlogConnectorReplicator.getTransactionRows(BinlogConnectorReplicator.java:182)〜[maxwell-1.11.0.jar:?] 在com.zendesk.maxwell.replication.BinlogConnectorReplicator.getRow(BinlogConnectorReplicator.java:281)〜[maxwell-1.11.0.jar:?] 在com.zendesk.maxwell.replication.AbstractReplicator.work(AbstractReplicator.java:148)〜[maxwell-1.11.0.jar:?] 在com.zendesk.maxwell.util.RunLoopProcess.runLoop(RunLoopProcess.java:27)〜[maxwell-1.11.0.jar:?] 在com.zendesk.maxwell.Maxwell.startInner(Maxwell.java:190)〜[maxwell-1.11.0.jar:?] 在com.zendesk.maxwell.Maxwell.start(Maxwell.java:140)〜[maxwell-1.11.0.jar:?] 在com.zendesk.maxwell.Maxwell.main(Maxwell.java:211)〜[maxwell-1.11.0.jar:?] 引起:java.io.IOException:未知的值类型代码' 7B' 在com.github.shyiko.mysql.binlog.event.deserialization.json.JsonBinary.readValueType(JsonBinary.java:978)〜[mysql-binlog-connector-java-0.13.0.jar:0.13.0] 在com.github.shyiko.mysql.binlog.event.deserialization.json.JsonBinary.parse(JsonBinary.java:205)〜[mysql-binlog-connector-java-0.13.0.jar:0.13.0] 在com.github.shyiko.mysql.binlog.event.deserialization.json.JsonBinary.parse(JsonBinary.java:181)~ [mysql-binlog-connector-java-0.13.0.jar:0.13.0] 在com.github.shyiko.mysql.binlog.event.deserialization.json.JsonBinary.parseAsString(JsonBinary.java:168)〜[mysql-binlog-connector-java-0.13.0.jar:0.13.0] 在com.zendesk.maxwell.schema.columndef.JsonColumnDef.asJSON(JsonColumnDef.java:24)〜[maxwell-1.11.0.jar:?] ......还有10个 16:22:49,715 INFO TaskManager - 停止:com.zendesk.maxwell.schema.PositionStoreThread@4de2ed80 16:22:49,715 INFO StoppableTaskState - com.zendesk.maxwell.schema.PositionStoreThread requestStop()调用(状态:RUNNING) 16:22:49,715 INFO TaskManager - 停止:com.zendesk.maxwell.producer.MaxwellKafkaProducerWorker@403e7018 16:22:49,715 INFO StoppableTaskState - MaxwellKafkaProducerWorker requestStop()调用(状态:RUNNING) 16:22:49,717 INFO KafkaProducer - 使用timeoutMillis = 9223372036854775807 ms关闭Kafka生产者。 16:22:49,718 INFO TaskManager - 停止:com.zendesk.maxwell.replication.BinlogConnectorReplicator@6971afb4 16:22:49,719 INFO StoppableTaskState - com.zendesk.maxwell.replication.BinlogConnectorReplicator requestStop()调用(状态:STOPPED) java.lang.RuntimeException:java.io.IOException:未知的值类型代码' 7B' 在com.zendesk.maxwell.schema.columndef.JsonColumnDef.asJSON(JsonColumnDef.java:27) 在com.zendesk.maxwell.replication.BinlogConnectorEvent.writeData(BinlogConnectorEvent.java:104) 在com.zendesk.maxwell.replication.BinlogConnectorEvent.buildRowMap(BinlogConnectorEvent.java:152) 在com.zendesk.maxwell.replication.BinlogConnectorEvent.jsonMaps(BinlogConnectorEvent.java:164) 在com.zendesk.maxwell.replication.BinlogConnectorReplicator.getTransactionRows(BinlogConnectorReplicator.java:182) 在com.zendesk.maxwell.replication.BinlogConnectorReplicator.getRow(BinlogConnectorReplicator.java:281) 在com.zendesk.maxwell.replication.AbstractReplicator.work(AbstractReplicator.java:148) 在com.zendesk.maxwell.util.RunLoopProcess.runLoop(RunLoopProcess.java:27) 在com.zendesk.maxwell.Maxwell.startInner(Maxwell.java:190) 在com.zendesk.maxwell.Maxwell.start(Maxwell.java:140) 在com.zendesk.maxwell.Maxwell.main(Maxwell.java:211) 引起:java.io.IOException:未知的值类型代码' 7B' 在com.github.shyiko.mysql.binlog.event.deserialization.json.JsonBinary.readValueType(JsonBinary.java:978) 在com.github.shyiko.mysql.binlog.event.deserialization.json.JsonBinary.parse(JsonBinary.java:205) 在com.github.shyiko.mysql.binlog.event.deserialization.json.JsonBinary.parse(JsonBinary.java:181) 在com.github.shyiko.mysql.binlog.event.deserialization.json.JsonBinary.parseAsString(JsonBinary.java:168) 在com.zendesk.maxwell.schema.columndef.JsonColumnDef.asJSON(JsonColumnDef.java:24) ......还有10个 16:22:51,037 INFO TaskManager - 停止所有任务
那么问题是什么?
谢谢,