Kafka 错误:无法找到或加载主类 org.apache.kafka.clients.tools.ProducerPerformance

May*_*Roy 2 apache-kafka clj-kafka

我试图按照以下文章为 Apache Kafka 运行性能测试

参考:

https://engineering.linkedin.com/kafka/benchmarking-apache-kafka-2-million-writes-second-three-cheap-machines

链接测试: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
Run Code Online (Sandbox Code Playgroud)

它显示错误:

Error: Could not find or load main class org.apache.kafka.clients.tools.ProducerPerformance
Run Code Online (Sandbox Code Playgroud)

是关于 kafka 版本吗?或者我需要从其他地方下载课程?

我的org.apache.kafka.clients.tools.ProducerPerformance类在哪里 ?请建议..

bot*_*que 6

的包名ProducerPerformance已从 更改 org.apache.kafka.clients.toolsorg.apache.kafka.tools

有关更多详细信息,请查看我对可能重复的问题的回答