Thank you. I see that in run-class.sh, they have the following lines: 63 for file in $base_dir/clients/build/libs/kafka-clients*.jar;
64 do 65 CLASSPATH=$CLASSPATH:$file 66 done So I believe all the jars in the libs/ directory have already been included in the classpath? Which directory is the ProducerPerformance class resides? Thanks. On Mon, Jul 13, 2015 at 4:37 PM, JIEFU GONG <jg...@berkeley.edu> wrote: > You may need to open up your run-class.sh in a text editor and modify the > classpath -- I believe I had a similar error before. > > On Mon, Jul 13, 2015 at 1:16 PM, Yuheng Du <yuheng.du.h...@gmail.com> > wrote: > > > Hi guys, > > > > I am trying to replicate the test of benchmarking kafka at > > > > > http://engineering.linkedin.com/kafka/benchmarking-apache-kafka-2-million-writes-second-three-cheap-machines > > . > > > > When I run > > > > bin/kafka-run-class.sh org.apache.kafka.clients.tools.ProducerPerformance > > test7 50000000 100 -1 acks=1 bootstrap.servers=192.168.1.1:9092 > > buffer.memory=67108864 batch.size=8196 > > > > and I got the following error: > > Error: Could not find or load main class > > org.apache.kafka.client.tools.ProducerPerformance > > > > What should I fix? Thank you! > > > > > > -- > > Jiefu Gong > University of California, Berkeley | Class of 2017 > B.A Computer Science | College of Letters and Sciences > > jg...@berkeley.edu <elise...@berkeley.edu> | (925) 400-3427 >