CCAAK · Question #39
You manage a Kafka Connect cluster with several source and sink connectors. A source connector that reads data from an external system encounters an issue and needs to reset is offsets to reprocess…
The correct answer is A. Stop the connector, use the Kafka Connect REST API to reset the offsets, and restart the. Resetting source connector offsets requires the connector to be stopped so that Connect can safely update and store the new offset values. After invoking the offset reset via the REST API, restarting the connector causes it to begin processing from the new specified position…
Question
You manage a Kafka Connect cluster with several source and sink connectors. A source connector that reads data from an external system encounters an issue and needs to reset is offsets to reprocess data from a specific point. You need to ensure that the connector starts reprocessing messages with minimal impact. Which steps should you take to reset the offsets for the source connector correctly?
Options
- AStop the connector, use the Kafka Connect REST API to reset the offsets, and restart the
- BPause the connector, manually edit the offset values in the Kafka Connect configuration file, and
- CDelete the connector, recreate it with the desired offset values, and start the connector again.
- DUse the Kafka Connect REST API to reset the offsets while the connector is running.
How the community answered
(23 responses)- A78% (18)
- B4% (1)
- C4% (1)
- D13% (3)
Explanation
Resetting source connector offsets requires the connector to be stopped so that Connect can safely update and store the new offset values. After invoking the offset reset via the REST API, restarting the connector causes it to begin processing from the new specified position with minimal disruption.
Topics
Community Discussion
No community discussion yet for this question.