类路径为空。请首先构建项目,例如运行“./gradlew jar -PscalaVersion=2.13.6”
我已经进行了很多搜索来解决这个问题,但没有任何效果对我有用。
我正在尝试在我的 Linux 机器(Mint)上安装 Kafka,并且已经到达启动 Kafka 代理的这一步:
$ sudo /usr/local/kafka/bin/kafka-server-start.sh -daemon /usr/local/kafka/config/server.properties
但是我收到了著名的恼人错误:
Classpath is empty. Please build the project first e.g. by running './gradlew jar -PscalaVersion=2.13.6'
请问有什么帮助吗?
PS我已经下载了 Kafka 二进制文件(不是源代码)
I've searched a lot for solving this issue but nothing worked for me.
I'm trying to install Kafka on my linux machine (Mint) and I've reached to this step where I start the Kafka broker:
$ sudo /usr/local/kafka/bin/kafka-server-start.sh -daemon /usr/local/kafka/config/server.properties
but I get the famous annoying error:
Classpath is empty. Please build the project first e.g. by running './gradlew jar -PscalaVersion=2.13.6'
Any help please?
P.S. I've downloaded the Kafka binary (not the source)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据输出,您尚未下载二进制包,因为它要求您编译/打包代码。
或者您已将 kafka-run-class.sh 二进制文件移动到无法引用运行服务器所需的 CLASSPATH 的位置
您不需要 sudo 来运行 Kafka ..尝试首先在
/usr/local
之外下载/启动 - https://kafka.apache.org/quickstartAccording to the output, you have not downloaded the binary package, as it is asking you to compile/package the code.
Or you have moved the
kafka-run-class.sh
binary somewhere where it cannot reference the necessary CLASSPATH for running the serverYou don't need
sudo
to run Kafka ... Try downloading/starting outside of/usr/local
first - https://kafka.apache.org/quickstart