Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 03-01-2016 08:52 PM
Hi,
I wanted to set "auto.offset.reset" to smallest in kafka consumer, as i my kafka consumer (spark-scala program) is not reading data from beginning currently.
https://kafka.apache.org/08/configuration.html
* smallest : automatically reset the offset to the smallest offset
Thanks & Regards,
Vinti
Created 03-01-2016 08:55 PM
@Vinti Maheshwari go to kafka configuration page and add the custom property if it's not there or change the value for the property.
Created 03-01-2016 08:55 PM
@Vinti Maheshwari go to kafka configuration page and add the custom property if it's not there or change the value for the property.
Created 11-06-2018 10:14 PM
I realize this is an old answer but it is wrong and I don't want people going down the wrong path. The auto.offset.reset config is on the consumer side, not the topic or broker side. You can add it as a custom property all day long in the Kafka configuration page but that won't help anything. This setting is driven from whatever code is consuming your topic. Also, some of the language has changed: "latest, earliest, or none" work for the new consumer API and "smallest, largest, or {any other value}" work for the old consumer API.