天天看点

debezium报错:no longer available on the server. Reconfigure the connector to use a snapshot when neede

debezium报错:no longer available on the server. Reconfigure the connector to use a snapshot when neede

完整报错如下:

-“trace”:"io.debezium.DebeziumException: The connector is trying to read binlog starting at SourceInfo [currentGtid=null, currentBinlogFilename=mysql-bin-changelog.210858, currentBinlogPosition=384, currentRowNumber=0, serverId=0, sourceTime=null, threadId=-1, currentQuery=null, tableIds=[], databaseName=null], but this is no longer available on the server. Reconfigure the connector to use a snapshot when needed.

解决方法如下:

"snapshot.mode": "when_needed"
           

继续阅读