How to reset consumer group offset

First run describe on topic to check what it the current LAG its zero in this case

bin/kafka-consumer-groups.sh --bootstrap-server localhost:9092 --describe --group user.kafkaconsumer
Now run following command to just preview what will be the next offset if you reset

bin/kafka-consumer-groups.sh --bootstrap-server localhost:9092 --group user.kafkaconsumer --reset-offsets --to-earliest --all-topics
Shutdown the consumer so that you can restart the consumer Now go back/reset the offset so that it goes back to first message 3bin/kafka-consumer-groups.sh --bootstrap-server localhost:9092 --group user.kafkaconsumer --reset-offsets --to-earliest --all-topics --execute Go back and verify that the consumer offset actually went back by executing following command

bin/kafka-consumer-groups.sh --bootstrap-server localhost:9092 --describe --group user.kafkaconsumer
You should be able to see the offset set back to 22000 which is start of first message in Kafka.

22 comments:

john macla said...

yahoo is search engine and web service provider.its also known for its web portal.yahoo provides business services also like yahoo web hosting.
yahoo support

srjwebsolutions said...

We are leading responsive website designing and development company in Noida. We are offering mobile friendly responsive website designing, website development, e-commerce website, seo service and sem services in Noida.

Responsive Website Designing Company in Noida
Website Designing Company in Noida
SEO Services in Noida
SMO Services in Noida

srjwebsolutions said...


We are leading responsive website designing and development company in Noida.
We are offering mobile friendly responsive website designing, website development, e-commerce website, seo service and sem services in Noida.

Responsive Website Designing Company in Noida
Website Designing Company in Noida
SEO Services in Noida
SMO Services in Noida

Vikas Chaudhary said...

Battery Mantra is Authorized exide car battery dealer in Noida and Greater Noida. We are providing our service in Indirapuram, Delhi, Ashok Nagar.

Exide Battery Dealer in Noida
Battery Dealer in Noida
Authorized Battery Dealer in Noida
Car Battery Dealer in Noida
Car Battery Dealer
Exide Battery Dealer

EG MEDI said...

Egmedi.com is online medical store pharmacy in laxmi nagar Delhi. You can Order prescription/OTC medicines online. Cash on Delivery available. Free Home Delivery


Online Pharmacy in Delhi
Buy Online medicine in Delhi
Online Pharmacy in laxmi nagar
Buy Online medicine in laxmi nagar
Onine Medical Store in Delhi
Online Medical store in laxmi nagar
Online medicine store in delhi
online medicine store in laxmi nagar
Purchase Medicine Online
Online Pharmacy India
Online Medical Store

viswanath said...

AWS Training in Bangalore - Live Online & Classroom
myTectra Amazon Web Services (AWS) certification training helps you to gain real time hands on experience on AWS. myTectra offers AWS training in Bangalore using classroom and AWS Online Training globally. AWS Training at myTectra delivered by the experienced professional who has atleast 4 years of relavent AWS experince and overall 8-15 years of IT experience. myTectra Offers AWS Training since 2013 and retained the positions of Top AWS Training Company in Bangalore and India.

IOT Training in Bangalore - Live Online & Classroom
IOT Training course observes iot as the platform for networking of different devices on the internet and their inter related communication. Reading data through the sensors and processing it with applications sitting in the cloud and thereafter passing the processed data to generate different kind of output is the motive of the complete curricula. Students are made to understand the type of input devices and communications among the devices in a wireless media.

Rohini .R said...

Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging.
Selenium Training in Bangalore | Selenium Training in Bangalore | Selenium Training in Bangalore | Selenium Training in Bangalore

Unknown said...

myTectra Placement Portal is a Web based portal brings Potentials Employers and myTectra Candidates on a common platform for placement assistance

Roja Priya said...

Thank you for sharing your article. Great efforts put it to find the list of articles which is very useful to know, Definitely will share the same to other forums.

best openstack training in chennai | openstack course fees in chennai | openstack certification in chennai | openstack training in chennai velachery

digital tucr said...

Data Science Certification Courses in Bangalore. ExcelR is the Best Data Science Training Institute in Bangalore with Placement assistance and offers a blended.

office.com/setup said...

I'm impressed, I must say. Very rarely do I come across a blog that's both informative and entertaining, and let me tell you, you've hit the nail on the head. Your blog is important; the issue is something that not enough people are talking intelligently about.
mcafee.com/activate |office.com/setup | office.com/setup | office.com/setup

Robert Williams said...

Nice one! thank you so much! Thank you for sharing this post. Your blog posts are more interesting and impressive.
norton.com/nu16 | office.com/setup | norton.com/setup | mcafee.com/activate |office.com/setup |mcafee.com/activate

Unknown said...

Informative !, I would like to hear more from you guys and more blogs to be shared.

machine learning online course

uday pavan said...

Great Blog!, please share more blogs that i can go through. to uday.pavaan@gmail.com

Stock Market Training in Hyderabad

Logo Designer said...

Thanks for sharing great post. Its really useful for me.

If you want to logo designing services than visit - Logo Designing Services Jaipur | Logo Designer in Jaipur | Logo maker in Jaipur

Mobile App Development Company said...

Thanks for sharing such a great blog... I am impressed with you taking time to post a nice info.
Mobile App Development Company | Mobile App Development Company in Mumbai

Mobile App Development company in Mumbai said...

Thanks for sharing valuable Information, I really very impressive on your blog. I hope you continue on blogging job.

Ankita Singh said...

Thanks for the List .. It's a good one, I always look forward to seeing your post. These Sites are so useful.
https://www.bharattaxi.com

mshilpa099 said...

Thank you for sharing.
AIADMK | BJP | Pattali Makkal Katchi | makkal needhi maiam | TTV dhinakaran | congress rahul | AMMK | election news chennai | politics speech tamil | NetCab

HP Printer Support said...

Nice one! This post is amazing and very important. Thanks for sharing.Awesome Post. I really like to this blog.
HP Printer Support | HP Printer Customer Support | Canon Printer Support | Sony Printer Support Number | Brother Printer Support Number | Lexmark Printer Support Number | Epson Printer Customer Support

HP printer technical support said...

Canon

Canon Printer Support

Canon Printer Support Number

Canon Printer Support Number USA

canon printer tech support phone number

Canon Printer technical Support Phone Number

Canon Printer customer Support Number

Canon Printer customer service number

HP
HP Printer Support

HP Printer Support Phone Number USA

HP Printer tech Support Number

HP Printer tech support phone Number

HP Printer technical support

HP Printer Number

HP Printer technical support Number

HP printer helpline number

EPSON
Epson Printer Support Number

Epson Printer Support

Epson Printer Support Phone Number

Epson Printer Support Phone Number USA

Canon Printer Customer Support said...

For obtaining support for all of your Canon printing problems, you’ll directly contact dial Canon Printer toll free Number to troubleshoot your printer problems in order that you’ll perform your printing tasks simply.

epson printer support number | hp printer customer support | brother printer support