When I start the connector for first time with "schema_only" , I get an error message:
org.apache.kafka.connect.errors.ConnectException: Could not find existing binlog information while attempting schema only recovery snapshot
at io.debezium.connector.mysql.AbstractReader.wrap(AbstractReader.java:230)
at io.debezium.connector.mysql.AbstractReader.failed(AbstractReader.java:208)
at io.debezium.connector.mysql.SnapshotReader.execute(SnapshotReader.java:721)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.IllegalStateException: Could not find existing binlog information while attempting schema only recovery snapshot
at io.debezium.connector.mysql.SnapshotReader.readBinlogPosition(SnapshotReader.java:738)
at io.debezium.connector.mysql.SnapshotReader.execute(SnapshotReader.java:370)
... 3 more
And if I manually insert an entry in the connect-offsets topic, and then start a connector, then it works.
Also If I start the connector for the first time with "inital" or "when needed", and then restart the connector with "schema_only", then also it works.
My scenario is that I want to start the connector for the first time with "schema_only" snapshot mode.
Thanks
Ritesh