在 zookepeer 在端口 2181 上成功 运行 后,Kafka 服务器不在 windows 上 运行
Kafka server not running on windows after zookepeer successfully running on port 2181
我正在关注这些 link:http://programming-tips.in/kafka-set-up-apache-kafka-on-windows/ and https://dzone.com/articles/running-apache-kafka-on-windows-os 在本地机器上安装 Apache Kafka。
成功 运行ning zookeeper 后,我的屏幕如下所示:
我的 server.properties 文件如下所示:
log.dirs="C:\Program Files\kafka_2.11-0.11.0.0\kafka-logs"
listeners=PLAINTEXT://:9092
zookeeper.connect=localhost:2181
zookeeper.connection.timeout.ms=6000
我的 zookeeper.properties 文件如下所示:
dataDir="C:\Program Files\kafka_2.11-0.11.0.0\zookeeper-data"
clientPort=2181
但是,当我尝试 运行 以下命令时:
C:\Program Files\kafka_2.11-0.11.0.0>\bin\windows\kafka-server-start.bat \config\server.properties
虽然,我已经给出了我已经多次验证的所有正确路径,但我得到了这个错误:
The system cannot find the path specified.
可能的解决方案是什么?
Windows 上的 Kafka 当前不支持安装路径中的空格。尝试移动您的 Kafka 文件夹,使路径不包含空格。此问题已在 JIRA 中报告,应该会在即将发布的版本之一中得到修复。
问题似乎与路径中的前导“\”有关,以下应该有效
C:\Program Files\kafka_2.11-0.11.0.0>bin\windows\kafka-server-start.bat config\server.properties
我正在关注这些 link:http://programming-tips.in/kafka-set-up-apache-kafka-on-windows/ and https://dzone.com/articles/running-apache-kafka-on-windows-os 在本地机器上安装 Apache Kafka。
成功 运行ning zookeeper 后,我的屏幕如下所示:
我的 server.properties 文件如下所示:
log.dirs="C:\Program Files\kafka_2.11-0.11.0.0\kafka-logs"
listeners=PLAINTEXT://:9092
zookeeper.connect=localhost:2181
zookeeper.connection.timeout.ms=6000
我的 zookeeper.properties 文件如下所示:
dataDir="C:\Program Files\kafka_2.11-0.11.0.0\zookeeper-data"
clientPort=2181
但是,当我尝试 运行 以下命令时:
C:\Program Files\kafka_2.11-0.11.0.0>\bin\windows\kafka-server-start.bat \config\server.properties
虽然,我已经给出了我已经多次验证的所有正确路径,但我得到了这个错误:
The system cannot find the path specified.
可能的解决方案是什么?
Windows 上的 Kafka 当前不支持安装路径中的空格。尝试移动您的 Kafka 文件夹,使路径不包含空格。此问题已在 JIRA 中报告,应该会在即将发布的版本之一中得到修复。
问题似乎与路径中的前导“\”有关,以下应该有效
C:\Program Files\kafka_2.11-0.11.0.0>bin\windows\kafka-server-start.bat config\server.properties