The import offset tool is the opposite of exporting. See my answer to your other question to understand the exporting step:
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