kafka消费端提交offset的方式
摘要:        
Kafka 提供了 3 种提交 offset 的方式 复制1234// 自动提交,默认trueprops.put("enable.auto.commit", "true");// 设置自动每1s提交一次props.put("auto.commit.interval.ms", "1000"); 复制1    阅读全文
        posted @ 2019-08-23 23:57 时间朋友 阅读(5899) 评论(0) 推荐(0)
 
                     
                    
                 
                    
                 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号