Windows 10 中的 Kafka 设置 [英] Kafka setup in windows 10
问题描述
我使用的是 Windows 10 并且我的机器上已经安装了 javaJAVA_HOME 用户变量设置为 C:\Program Files\Java\jre1.8.0_121\bin 路径和环境变量的相同路径.
我想在我的机器上使用 Kafka 进行一个项目.我从链接下载 kafka
I am using windows 10 and I already have java installed in my machine
The JAVA_HOME user variable is set to C:\Program Files\Java\jre1.8.0_121\bin path and same path for environment variable.
I want to use Kafka in my machine for a project.
I download kafka from the link http://www-us.apache.org/dist/kafka/1.0.0/kafka_2.11-1.0.0.tgz
我将其解压缩到名为 Kafka 的文件夹中的 C 驱动器中.我将 dataDir 的 zookeeper.properties 文件更改为 C:/Kafka/kafka_2.11-1.0.0/zookeeper-data,我还将 log.dirs 的 server.properties 更改为 C:/Kafka/kafka_2.11-1.0.0/kafka-logs.
I extracted it to my C drive in a folder named as Kafka. I made the changes in zookeeper.properties file for dataDir as C:/Kafka/kafka_2.11-1.0.0/zookeeper-data and I also made changes in server.properties for log.dirs as C:/Kafka/kafka_2.11-1.0.0/kafka-logs.
我在 C:\Kafka\kafka_2.11-1.0.0\bin\windows 路径中打开 cmd 并给出以下命令以运行 zookeeper 服务器 zookeeper-server-start.bat ....\config\zookeeper.properties
cmd 给我错误消息,因为系统找不到指定的路径.这就是我所得到的.请指导我修复它并帮助我运行 kafka.谢谢
I opened cmd in C:\Kafka\kafka_2.11-1.0.0\bin\windows path and gave the following command in order to run the zookeeper server zookeeper-server-start.bat ....\config\zookeeper.properties
The cmd is giving me error message as The system can not find the path specified. This is all I am getting. Kindly guide me to fix it and help me to run kafka. Thanks
推荐答案
我解决了这个问题,现在它工作正常.我提到 JAVA_HOME 路径为 C:\Program Files\Java\jre1.8.0_121\bin.它应该是 C:\Program Files\Java\jre1.8.0_121.然后没有错误.动物园管理员开始了.卡夫卡开始了.感谢那些尝试过的人.
I solved the problem and now it is working fine. I mentioned JAVA_HOME path as C:\Program Files\Java\jre1.8.0_121\bin. It should be C:\Program Files\Java\jre1.8.0_121. Then there is no error. zookeeper started. kafka started. Thanks to those who tried.
这篇关于Windows 10 中的 Kafka 设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!