Java代码编写Kafka的注意:需要修改server.properties
修改文件
[root@node1 ~]# vi /opt/app/kafka-0.11.0.0/config/server.properties
advertised.listeners=PLAINTEXT://192.168.200.111:9092
[root@node2 ~]# vi /opt/app/kafka-0.11.0.0/config/server.properties
advertised.listeners=PLAINTEXT://192.168.200.112:9092
[root@node3 ~]# vi /opt/app/kafka-0.11.0.0/config/server.properties
advertised.listeners=PLAINTEXT://192.168.200.113:9092
本文来自博客园,作者:jsqup,转载请注明原文链接:https://www.cnblogs.com/jsqup/p/16665663.html