【发布时间】:2022-03-25 15:00:17
【问题描述】:
我已经在我的本地 C:\ 驱动器文件夹上安装了 kafka 和 zookeeper,现在我正在尝试运行 zookeeper 和 kafka 服务器,以便我可以创建主题,但它抛出错误,知道这里出了什么问题吗?
kafka 命令行:
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
【问题讨论】:
-
我从未在 Windows 上使用过 Kafka。但是,您正在使用的文件
server.pro erties包含以“#”开头的行——在 Linux 上,这是 cmets。 Windows 似乎无法处理这些注释行。尝试删除它们。
标签: apache-kafka apache-zookeeper