OS: Centos 6.5
Kafka from kafka-0.8.1.2.1.4.0-632.el6.noarch repo. Installed using yum.
When I wanted to use perfomance tools:
[server1 kafka]# bin/kafka-run-class.sh org.apache.kafka.clients.tools.ProducerPerformance
Error: Could not find or load main class org.apache.kafka.clients.tools.ProducerPerformance
Then I tried different methods to get workaround but for me worked following:
cd /usr/local/
git clone https://git-wip-us.apache.org/repos/asf/kafka.git
yum install git
git clone https://git-wip-us.apache.org/repos/asf/kafka.git
cd kafka
git checkout -b 0.8 remotes/origin/0.8
./sbt update
./sbt package
./sbt assembly-package-dependency
./bin/kafka-producer-perf-test.sh – it now works!
[root@server1 kafka]# ./bin/kafka-producer-perf-test.sh –topic kafkatopic –broker-list server1:9092 –messages 1000000 –show-detailed-stats –message-size 1024
start.time, end.time, compression, message.size, batch.size, total.data.sent.in.MB, MB.sec, total.data.sent.in.nMsg, nMsg.sec
2014-10-07 09:45:13:825, 2014-10-07 09:45:23:781, 0, 1024, 200, 976.56, 98.0878, 1000000, 100441.9446