Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Is there a tool to import offsets?

Solved Go to solution

Is there a tool to import offsets?

New Contributor
 
1 ACCEPTED SOLUTION

Accepted Solutions

Re: Is there a tool to import offsets?

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

1 REPLY 1

Re: Is there a tool to import offsets?

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

Don't have an account?
Coming from Hortonworks? Activate your account here