Support Questions

Find answers, ask questions, and share your expertise

Is there a tool to import offsets?

avatar
Explorer
 
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.