I have searched quite a lot on this but there doesn't seems to be a good guide around this.
From what I have searched there are a few things to consider:
Question: Is there even a need to reset these topics?
--reset-offsets
to --to-earliest
What would be the best way to restart both a sink and a source connector to read from beginning?
Source Connector:
/tmp/connect.offsets
) or change connector name.Sink Connector (both modes) one of the following methods:
To reset offset you have to first delete connector, reset offset (./bin/kafka-consumer-groups.sh --bootstrap-server :9092 --group connectorName --reset-offsets --to-earliest --execute --topic topicName
), add same configuration one more time
You can check following question: Reset the JDBC Kafka Connector to start pulling rows from the beginning of time?