知识点记录-win10安装KAFKA(版本kafka-3.1.0) ZOOKEEPER
目录
安装
下载kafka
地址https://kafka.apache.org/downloads(选择基于Scala 2.12的版本 kafka_2.12-3.1.0.tgz )
解压路径F:\SW\MQ\KAFKA\kafka_2.12-3.1.0
设置zookeeper参数
打开POWERSHELL
cd F:\SW\MQ\KAFKA\kafka_2.12-3.1.0
修改config/zookeeper.properties
dataDir=F:/SW/MQ/KAFKA/kafka_2.12-3.1.0/zookeeper
启动zookeeper
.\bin\windows\zookeeper-server-start.bat .\config\zookeeper.properties
设置kafka参数
修改config/server.properties
broker.id=0
listeners=PLAINTEXT://localhost:9092
advertised.listeners=PLAINTEXT://localhost:9092
log.dirs=F:/SW/MQ/KAFKA/kafka_2.12-3.1.0/kafka-logs
zookeeper.connect=localhost:2181/kafka
启动KAFKA
.\bin\windows\kafka-server-start.bat .\config\