kafka windows环境搭建

2019-06-26  本文已影响0人  _stone

基本环境

zookeeper下载和安装

下载

下载地址 https://www.apache.org/dyn/closer.cgi/zookeeper/

安装配置:

启动

 > .\zkServer.cmd

kafka 下载安装

官网 https://kafka.apache.org/quickstart

安装配置

listeners= PLAINTEXT://localhost:9092

启动

进入bin目录

> bin\windows\kafka-server-start.bat config\server.properties

添加topic (主题)

> >bin\windows\kafka-topics.bat --create --bootstrap-server localhost:9092 --replication-factor 1 --partitions 1 --topic yourTopicName
上一篇下一篇

猜你喜欢

热点阅读