Support Questions

Find answers, ask questions, and share your expertise

Is there a tool to import offsets?

Explorer
 
1 ACCEPTED SOLUTION

@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

@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.

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.