启动Zookeper -Apache Kafka时出错

时间:2017-11-06 11:00:46

标签: java apache-kafka

我无法启动Zookeper。我尝试删除该文件夹并从头开始重新启动,并尝试更改目录。但是我在CMD中收到以下错误:

D:\Zookeper & Kafka\kafka_2.11-1.0.0\bin\windows>zookeeper-server-start.bat ..\..\config\zookeeper.properties
'Kafka\kafka_2.11-1.0.0\bin\windows\..' is not recognized as an internal or external command,
operable program or batch file.
The system cannot find the path specified.
'Kafka\kafka_2.11-1.0.0\bin\windows\..\..' is not recognized as an internal or external command,
operable program or batch file.
The system cannot find the path specified.
Error: Could not find or load main class Files\Apache

我也试过从Kafka的主目录运行Zookeper,如:

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

但同样的事情出现了。请帮我解决一下这个。我已经安装了JDK和JRE,并设置了环境变量并使用Tomcat Apache并在NetBeans中开发项目。但我对此感到困惑。

1 个答案:

答案 0 :(得分:0)

环境变量中的Java路径和类路径存在问题。正确设置类路径解决了这个问题。谢谢