如何运行以下命令来测试kafka服务器是否安装正确? [英] How to run following command to test kafka server is installed properly or not?

查看:26
本文介绍了如何运行以下命令来测试kafka服务器是否安装正确?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了 Kafka 和 zookeeper.Zookeeper 工作正常.但是,当我尝试运行 Kafka 服务器时,出现以下错误.请帮我解决这个问题.先感谢您!!!

I have installed Kafka as well zookeeper. Zookeeper is working fine. However, when I try to run Kafka server, I get the below error. Please help me with a solution for this problem. Thank you in advance!!!

从 C:\kafka-0.9.0.1 运行的命令:

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

错误信息:
类路径为空.请先构建项目,例如通过运行gradlew jarAll"

推荐答案

当您安装 Kafka 时,您是从源下载还是二进制下载?当您下载源分发时会出现此问题.

When you installed Kafka, did you download from a source download or a binary download? This problem occurs when you download a source distribution.

要解决此问题,请通过二进制下载链接下载:

To fix this, download via the binary download link:

Kafka 0.11.0.0 二进制

另外,windows 的 bat 文件似乎有一些问题,所以我建议按照这里的指南进行操作:

Also, the bat files for windows seem to have some problems, so I suggest following the guide here:

http://blog.anilot.tk/2014/08/06/Set-Up-Kafka-On-Windows/

使用指南中链接的 Github 存储库中的 bat 文件.

Using the bat files from the Github repository linked in the guide.

这篇关于如何运行以下命令来测试kafka服务器是否安装正确?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆