You can do this with the zookeeper shell. Kafka uses zookeeper to track consumer biases.
Go to the kafka bin directory and call the zookeeper shell (my version of kafka is 0.8.0)
./zookeeper-shell.sh localhost:2181
Now use the zookeeper get command
get /consumers/consumer_group_id/offsets/topic/0
it shows something like
2043 cZxid = 0x4d ctime = Wed Mar 18 03:56:32 EDT 2015 ...
Here 2043 is the maximum absorption. Set the desired value using the zookeeper set command
set /consumers/consumer_group_id/offsets/topic/0 10000
The path is framed as follows: users / [consumer_group_id] / offsets / [topic] / [partition_id].
You will need to replace the appropriate consumer group, topic and section identifier.
* Also, since you mentioned this new instance of kafka, I'm not sure if consumers will be connected and consumer groups created.
source share