如何在本地机器上设置kafka和zookeeper?
问题描述:
我已经在我的本地C:\驱动器文件夹中安装了kafka和zookeeper,现在我正尝试运行zookeeper和kafka服务器,这样我就可以创建主题,但是它抛出的错误,任何想法在这里出错?如何在本地机器上设置kafka和zookeeper?
卡夫卡COMAND行:
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
答
你有没有在系统变量设置ZOOKEEPER_HOME? 请按照这个视频 https://www.youtube.com/watch?v=OJKesEpO6ok
+0
感谢它有助于理解卡夫卡设置。 – hussain
我从来没有在Windows上使用Kafka。但是,您使用的文件'server.pro erties'包含以'#'开头的行 - 在Linux上,这是注释。看来Windows不能处理这些评论。尝试删除它们。 –