How to reset offset to begining

閲覧: 554 回
最初の未読メッセージにスキップ

FairyTail1279

未読、
2022/05/12 6:47:502022/05/12
To: debezium
Hi. All

I created connector name "A" and delete it and recreating connector name "A" again. how can connector read  topic from the beginning again?

Thanks.
FairyTail.

Chris Cranford

未読、
2022/05/13 16:25:252022/05/13
To: debe...@googlegroups.com、FairyTail1279
Hi Fairy -

Kafka Connect uses the connector name as a lookup key for the offsets and when you remove the connector, it does not automatically clean-up offsets.  If you want the connector to take a snapshot & start from the beginning rather than resuming where it last left off when you delete & re-create the connector, you will either need to clear the offsets after you've deleted the connector or re-create the connector with a new name.  Using a new name is the easiest and what we see a lot of people use is a numeric value at the end of the name that they simply increment, but that's entirely up to you.

Hope that helps.
Chris
--
You received this message because you are subscribed to the Google Groups "debezium" group.
To unsubscribe from this group and stop receiving emails from it, send an email to debezium+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/debezium/280de52f-12ca-4b54-bf86-a749926229dfn%40googlegroups.com.

全員に返信
投稿者に返信
転送
新着メール 0 件