KafKa安装与使用

KAFKA Download URL​​​​​​

vim config/server.properties
broker.id=0
advertised.listeners=PLAINTEXT://localhost:9092
log.dirs=/home/kafka/logs
num.partitions=2
zookeeper.connect=localhost:2181

zkServer.sh start
ll /home/kafka/logs/
./bin/kafka-server-start.sh ./config/server.properties &
zkCli.sh
ls /
[cluster, controller, brokers, zookeeper, admin, isr_change_notification, p, controller_epoch, consumers, config]

猜你喜欢

转载自blog.csdn.net/Leon_Jinhai_Sun/article/details/85913067
今日推荐