Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Is there a tool to import offsets?

avatar
New Member
 
1 ACCEPTED SOLUTION

avatar
Super Guru

@Connor O'Neal

The import offset tool is the opposite of exporting. See my answer to your other question to understand the exporting step:

https://community.hortonworks.com/questions/84827/is-there-a-tool-to-export-offsets.html#answer-8484...

To import the offsets for the consumer group named “testconsumergroup” from a file named “offsets”:

 kafka-run-class.sh kafka.tools.ImportZkOffsets --zkconnect mykafka.abc.com:2181/kafka-cluster --input-file offsets

+++

If this helped, please vote/accept as the best answer.

View solution in original post

1 REPLY 1

avatar
Super Guru

@Connor O'Neal

The import offset tool is the opposite of exporting. See my answer to your other question to understand the exporting step:

https://community.hortonworks.com/questions/84827/is-there-a-tool-to-export-offsets.html#answer-8484...

To import the offsets for the consumer group named “testconsumergroup” from a file named “offsets”:

 kafka-run-class.sh kafka.tools.ImportZkOffsets --zkconnect mykafka.abc.com:2181/kafka-cluster --input-file offsets

+++

If this helped, please vote/accept as the best answer.