earliest:

当各分区下有已提交的offset时,从提交的offset开始消费;无提交的offset时,从头开始消费

latest :
当各分区下有已提交的offset时,从提交的offset开始消费;无提交的offset时,消费新产生的该分区下的数据 

enable_auto_commit (bool):

如果为True,将自动定时提交消费者offset。默认为True。

auto_commit_interval_ms (int):

自动提交offset之间的间隔毫秒数。如果enable_auto_commit 为true,默认值为: 5000。

group_id :

消费组名称。如果为None,则通过group coordinator auto-partition分区分配,offset提交被禁用。默认为None

 

参考:

https://blog.csdn.net/luanpeng825485697/article/details/81036028

https://www.cnblogs.com/shouke/p/10463377.html

https://www.cnblogs.com/FG123/p/10091478.html

 

posted on 2019-04-28 10:38  chester·chen  阅读(1099)  评论(0编辑  收藏  举报