![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
kafka
言必行 行必果
切勿得意忘形,保持谦虚
展开
-
kafka单机版安装启动顺序
1.下载kafka_2.10-0.8.1.1.tgz 2.解压:tar -zxvf kafka_2.10-0.8.1.1.tgz 3.进入目录修改server.properties文件:vi server.properties (值自己定) broker.id=2 port=9094 log.dirs=/tmp...原创 2019-07-14 13:12:54 · 317 阅读 · 0 评论 -
kafka生产者能正常发送消息但消费者轮询到的消息为empty,java代码
public class ProducerDemo { // Topic private static final String topic = "kafkaTopic"; public static void main(String[] args) throws Exception { Properties props = new Propertie...原创 2019-07-14 17:08:11 · 1377 阅读 · 1 评论