Ah, ur right. I missed the benchmark package in client module. sorry. > java -cp <the-hedwig-client-jar> <options> > org.apache.hedwig.client.benchmark.HedwigBenchmark <conf> > java.lang.ClassNotFoundException: org.apache.commons.cli.CommandLineParser
the client jar package is not built with dependencies. the dependencies are in lib/ directory. you need add all the dependencies in the classpath (in the -cp option). On Thu, Nov 15, 2012 at 12:31 AM, Haoyan Geng <[email protected]> wrote: > Hi Sijie, > > Thanks for your reply. I googled a little bit and found this link: > > > http://mail-archives.apache.org/mod_mbox/zookeeper-bookkeeper-dev/201204.mbox/%3ccaolhyds9wwp+dlqhjc2otf-cfj6klkf1yj4ex+u27_ecb+j...@mail.gmail.com%3E > > So I tried to run with similar command mentioned in that email (i.e. java > -cp <the-hedwig-client-jar> <options> > org.apache.hedwig.client.benchmark.HedwigBenchmark > <conf>), but got error messages like this: > > Exception in thread "main" java.lang.NoClassDefFoundError: > org/apache/commons/cli/CommandLineParser > Caused by: java.lang.ClassNotFoundException: > org.apache.commons.cli.CommandLineParser > at java.net.URLClassLoader$1.run(URLClassLoader.java:202) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:190) > at java.lang.ClassLoader.loadClass(ClassLoader.java:306) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) > at java.lang.ClassLoader.loadClass(ClassLoader.java:247) > > I tried both the code checked out from the svn, and the 4.1.0 release. Is > this benchmark no longer supported, or am I missing something? > > Thanks a lot, > Haoyan > > > On Wed, Nov 14, 2012 at 3:12 AM, Sijie Guo <[email protected]> wrote: > >> Hello Haoyan, >> >> I think we don't have hedwig benchmark available in code base. We had >> benchmark for bookkeeper in bookkeeper-benchmark module. But honestly, we >> need such a benchmark for Hedwig. >> >> -Sijie >> >> >> On Tue, Nov 13, 2012 at 10:31 AM, Haoyan Geng <[email protected]> wrote: >> >>> Hi, >>> >>> I am new to Hedwig, and want to get some numbers about how it performs. >>> I saw instructions on how to compile/package/run Hedwig servers and its >>> console client, but could not find those on how to use the Hedwig >>> Benchmark. Could someone please point me to a guide, or give me some >>> hints on this? >>> >>> Thanks, >>> Haoyan >>> >> >> >
