kafka-linux集群搭建小结
前提
1、准备linux一台或多台,大于等于2
2、已经搭建好的zookeeper集群
1.{home}/config/server.propertis文件,重点配置如下:
#broker.id=1 每台服务器的broker.id都不能相同
host.name=192.168.1.1 (不同)
log.dirs=/zoo/kafka/kafka-logs
zookeeper.connect=192.168.1.1:2181,192.168.1.2:2181,192.168.1.3:2181
2.{kafka_home}/bin #进入到kafka的bin目录
./kafka-server-start.sh -daemon ../config/server.properties
jps
20348 Jps
18991 Kafka
4.校验
refer to :
http://blog.csdn.net/l1028386804/article/details/78374836