我正在尝试按照以下 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版本的吗?或者我需要从其他地方下载类(class)?
我的 org.apache.kafka.clients.tools.ProducerPerformance 类在哪里?请建议..
最佳答案
ProducerPerformance
的包名称已从
org.apache.kafka.clients.tools
到 org.apache.kafka.tools
。
有关更多详细信息,请检查我的答案是否可能重复 question .
关于apache-kafka - 卡夫卡错误 : Could not find or load main class org. apache.kafka.clients.tools.ProducerPerformance,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24780849/