1.下载安装包:
kafka_2.13-2.7.0.tgz
https://www.apache.org/dyn/closer.cgi?path=/kafka/2.7.0/kafka_2.13-2.7.0.tgz
2.上传安装包:
3.解压:
tar -zxvf kafka_2.13-2.7.0.tgz
4.配置zookeeper
[root@localhost kafka]# mkdir zookeeper
[root@localhost kafka]# cd /usr/local/kafka/config
[root@localhost config]# vi zookeeper.properties
dataDir=/usr/local/kafka/zookeeper
dataLogDir=/usr/local/kafka/log/zookeeper
clientPort=2181
maxClientCnxns=100
tickTime=3000
initLimit=10
syncLimit=5
server.1=192.168.1.128:2888:3888
server.2=192.168.1.129:2888:3888
server.3=192.168.1.130:2888:3888