kafka 设置auto.offset.reset

当不同group中,如果consumer第一次启动时候,在zookeeper中没有初始的offset(读取的offset,不是logfile 的offset),或者offset过大,那么设置

smallest和largest才有效,如果smallest重新0开始读取,如果是largest从logfile的offset读取。一般情况下我们都是设置smallest 


kafka 设置auto.offset.reset_第1张图片

你可能感兴趣的:(kafka)