无法在 Windows 上启动 Kafka 的 zookeeper

无法在 Windows 上启动 Kafka 的 zookeeper

我有以下文件夹结构:

在此处输入图片描述

C:\Program Files\kafka\kafka_2.11-0.11.0.0ffolder 我尝试执行以下命令:

bin\windows\zookeeper-server-start.bat config\zookeeper.properties

并回复以下消息:

'C:\Program' is not recognized as an internal or external command,
operable program or batch file.

我尝试使用其他几种变体,但仍然看到错误:

C:\Program Files\kafka\kafka_2.11-0.11.0.0>bin\windows\zookeeper-server-start.bat
USAGE: bin\windows\zookeeper-server-start.bat zookeeper.properties

C:\Program Files\kafka\kafka_2.11-0.11.0.0>bin\windows\zookeeper-server-start.bat C:\Program Files\kafka\kafka_2.11-0.11.0.0\config\zookeeper.properties
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.

C:\Program Files\kafka\kafka_2.11-0.11.0.0>bin\windows\zookeeper-server-start.bat 'C:\Program Files\kafka\kafka_2.11-0.11.0.0\config\zookeeper.properties'
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.

我做错什么了?

答案1

你的命令应该是

bin\windows\zookeeper-server-start.bat config\zookeeper.properties

相关内容