如何在本地计算机上设置kafka和zookeeper?

时间:2016-06-14 19:04:27

标签: apache-kafka apache-zookeeper

我已经在我的本地C:\ drive文件夹上安装了kafka和zookeeper,现在我正在尝试运行zookeeper和kafka服务器,所以我可以创建主题但是它抛出以下错误,任何想法这里出了什么问题?

kafka comand Line:

C:\kafka_2.11-0.10.0.0>.\bin\windows\kafka-server-start.bat .\config\server.pro
erties
'#' is not recognized as an internal or external command,
operable program or batch file.
The syntax of the command is incorrect.
Error: missing `server' JVM at `C:\Program Files (x86)\Java\jre8\bin\server\jvm
dll'.
Please install or use the JRE or JDK that contains these missing components.

zookeeper.config

tickTime=2000
initLimit=10
syncLimit=5
dataDir=\zookeeper-3.4.8
clientPort=2181

1 个答案:

答案 0 :(得分:1)

您是否在系统变量中设置了ZOOKEEPER_HOME? 请关注此视频 https://www.youtube.com/watch?v=OJKesEpO6ok