Kafka需要配置安装ZooKeeper
- 下载安装JDK8:https://blog.csdn.net/Future_LL/article/details/84667634
- 下载安装ZooKeeper:https://blog.csdn.net/Future_LL/article/details/83934986 【Window和Linux一样】
- ZooKeeper集群搭建:https://blog.csdn.net/Future_LL/article/details/87444760
Kafka集群搭建
- 解压Kafka并指定解压位置:tar -zxvf kafka_2.11-2.1.0.tgz -C /usr/local/kafka/
- 修改配置文件:vim config/server.properties
- 启动ZooKeeper:./bin/zkServer.sh start
- 使用命令查看ZooKeeper是否启动:jps
- 这里有个前提,需要启动JDK
- 在三台服务器上启动Kafka:./bin/kafka-server-start.sh config/server.properties
- 检查启动:jps
- 这样就启动了Kafka