org.apache.kafka.clients.tools.ProducerPerformance resides in
kafka-clients-0.8.2.1.jar.
You need to make sure the jar exists in $KAFKA_HOME/libs/. I use
kafka_2.10-0.8.2.1
too and here is the output

% bin/kafka-run-class.sh org.apache.kafka.clients.tools.ProducerPerformance

USAGE: java org.apache.kafka.clients.tools.ProducerPerformance topic_name
num_records record_size target_records_sec [prop_name=prop_value]*



On Tue, 14 Jul 2015 at 05:08 Yuheng Du <yuheng.du.h...@gmail.com> wrote:

> I am using the binaries of kafka_2.10-0.8.2.1. Could that be the problem?
> Should I use the source of kafka-0.8.2.1-src.tgz to each of my machiines,
> build them and run the test?
> 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
> >
>

Reply via email to