Kafka 错误:无法找到或加载主类 org.apache.kafka.clients.tools.ProducerPerformance [英] Kafka Error: Could not find or load main class org.apache.kafka.clients.tools.ProducerPerformance
本文介绍了Kafka 错误:无法找到或加载主类 org.apache.kafka.clients.tools.ProducerPerformance的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图按照以下文章为 Apache Kafka 运行性能测试
I was trying to run Performance test as per the following article for Apache Kafka
参考:
链接测试:https://gist.github.com/jkreps/c7ddb4041ef62a900e6c
但是当我运行这个时:
bin/kafka-run-class.sh org.apache.kafka.clients.tools.ProducerPerformance test7 50000000 100 -1 acks=1 bootstrap.servers=localhost:9092 buffer.memory=67108864 batch.size=8196
显示错误:
Error: Could not find or load main class org.apache.kafka.clients.tools.ProducerPerformance
是关于kafka版本的吗?或者我需要从其他地方下载课程?
Is it about kafka version? Or I need to download the class from somewhere else?
我的 org.apache.kafka.clients.tools.ProducerPerformance 类在哪里?请建议..
Where is my org.apache.kafka.clients.tools.ProducerPerformance class? Please suggest..
推荐答案
ProducerPerformance
的包名已从org.apache.kafka.clients.tools
到 org.apache.kafka.tools
.
有关更多详细信息,请查看我的回答以查找可能重复的问题.
For more details, check my answer for a possible duplicate question.
这篇关于Kafka 错误:无法找到或加载主类 org.apache.kafka.clients.tools.ProducerPerformance的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文