Reset Connector Offsets
A 6-step recipe with Apache Kafka. We can help you get access.
Recipe · 6 steps
Reset Connector Offsets
with Apache Kafka
Wipe a stopped connector's offsets and restart it from scratch.
- Stop the connector. Kafka Connect will not reset offsets for a connector that is running or paused, only for one that is fully stopped.
- Snapshot the offsets before they are deleted. The reset itself cannot be undone through the API, so this response is the only record of where the connector had reached.
- Delete the connector's offsets. On resume the connector behaves as if it had never run, reprocessing from its configured starting position.
- Read the offsets back while the connector is still stopped to confirm the reset cleared them before any reprocessing begins.
- Resume the connector so it begins reprocessing from a clean slate.
- Confirm the connector came back healthy and is reprocessing rather than failing on its first poll after the reset.
What you'll need to have ready
- connectorName: The name of the connector whose offsets are being reset.
For your developer
Arazzo workflow apache-kafka:reset-connector-offsets, 6 operations: stopConnector → getConnectorOffsets → resetConnectorOffsets → getConnectorOffsets → resumeConnector → getConnectorStatus. Specs on APIs.io.