I was trying to run Performance test as per the following article for Apache Kafka
Reference:
Linked-in tests: https://gist.github.com/jkreps/c7ddb4041ef62a900e6c
But when I run this:
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
It shows the error:
Error: Could not find or load main class org.apache.kafka.clients.tools.ProducerPerformance
Is it about kafka version? Or I need to download the class from somewhere else?
Where is my org.apache.kafka.clients.tools.ProducerPerformance class? Please suggest..
I think you need to build the project first before running this command .. you can use build tool such as
sbt
as documented in their official web sitePackage name of
ProducerPerformance
has been changed fromorg.apache.kafka.clients.tools
toorg.apache.kafka.tools
.For more details, check my answer for a possible duplicate question.