新装kafka与zookeeper配置

zookeeper配置

dataDir=/opt/kafka_2.11-2.0.0/data/zookeeper # 尽量不要放在tmp
# the port at which the clients will connect
clientPort=2181
# disable the per-ip limit on the number of connections since this is a non-production config
maxClientCnxns=100
server.=192.168.100.100:: # zookeeper节点
server.=192.168.100.101::
# 如果还有其他节点,继续添加
initLimit=
syncLimit=

kafka配置

主要修改以下几项,log文件轮滚时间以及大小根据业务具体调优

broker.id=2  # 节点编号,不应当重复
listeners=PLAINTEXT://192.168.100.101:9092 # 监听地址和端口
zookeeper.connect=192.168.100.100:,192.168.100.101:2181 # zookeeper地址
上一篇:几个.net的GUI控件库


下一篇:1.2 Coin 项目