<h1>1.搭建zookeeper集群</h2>
a.下载zookeeper安装文件
b.进入zookeeper/conf
目录,copy一份zoo_sample.cfg
.将名字修改为zoo.cfg
c.修改配置文件:
dataDir=/tmp/zookeeper 数据保存路径
clientPort=2181 端口
//以下为三台zookeeper为事例,每台配置保证一致
server.1=node-02:2888:3888
server.2=node-03:2888:3888
server.3=node-04:2888:3888
d.启动kafka zkServer.sh start
<h1> 2.搭建kafka集群 </h1>
a.下载kafka安装文件
b.进入kafka_xxx/config
,修改server.properties
. 按照上一篇kafka0.10配置进行修改即可
c.启动kafka ./kafka-server-start.sh ../config/server.properties