我试图按照以下文章为Apache Kafka运行性能测试
参考:https://engineering.linkedin.com/kafka/benchmarking - apache -卡夫卡- 200万-写-二-三-廉价机器
链接测试: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版本的吗?或者我需要从其他地方下载课程?
我的在哪里?ProducerPerformance 课吗?请建议. .
ProducerPerformance
的包名已由org.apache.kafka.clients.tools
to org.apache.kafka.tools
.
如果有重复的问题,请查看我的答案
我认为您需要在运行此命令之前先构建项目。您可以使用sbt
等构建工具,其官方网站