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.1=192.168.100.100:2888:3888 # zookeeper节点 server.2=192.168.100.101:2888:3888 # 如果还有其他节点,继续添加
initLimit
=5 syncLimit=2

kafka配置

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

broker.id=2  # 节点编号,不应当重复
listeners=PLAINTEXT://192.168.100.101:9092  # 监听地址和端口
zookeeper.connect=192.168.100.100:2181,192.168.100.101:2181 # zookeeper地址

 

posted on 2018-09-06 17:18  Go_Forward  阅读(148)  评论(0编辑  收藏  举报