kafka-消息发布与订阅
hutonm
这个作者很懒,什么都没留下…
展开
-
Kafka producer无法发送消息解决办法
在虚拟机搭建了kafka集群,在集群内使用Shell可以成功发送消息创建Topic。 但是在外部使用API无法发送消息,但是能创建topic 具体原因Hostname and port the broker will advertise to producers and consumers. If not set, it uses the value for “listeners” if co原创 2017-11-24 14:32:16 · 15968 阅读 · 6 评论 -
kafka SparkStreaming读取数据笔记
取决于 enable.auto.commit” enable.auto.commit” -> (true: java.lang.Boolean) 可以保存offset,可以读取错过消息。(即使没有checkpoint)不开自动提交的话 offset取决于 auto.offset.reset” 0.9以后offset已经和zk没关系原创 2018-01-17 12:07:29 · 333 阅读 · 0 评论