无法找到或加载主类org

无法找到或加载主类org

本文介绍了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://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

它显示错误:

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 .

Package name of ProducerPerformance has been changed fromorg.apache.kafka.clients.tools to org.apache.kafka.tools.

有关更多详细信息,请检查我的答案是否有重复的问题.

For more details, check my answer for a possible duplicate question.

这篇关于Kafka错误:无法找到或加载主类org.apache.kafka.clients.tools.ProducerPerformance的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-13 17:34