I see, so now I included all the jars in hedwig-server/lib : java -cp bookkeeper-server-4.2.0-SNAPSHOT.jar:bookkeeper-server-4.2.0-SNAPSHOT-tests.jar:commons-beanutils-1.7.0.jar:commons-beanutils-core-1.8.0.jar:commons-cli-1.2.jar:commons-codec-1.6.jar:commons-collections-3.2.1.jar:commons-configuration-1.6.jar:commons-digester-1.8.jar:commons-io-2.1.jar:commons-lang-2.4.jar:commons-logging-1.1.1.jar:derby-10.8.2.2.jar:guava-13.0.1.jar:hedwig-client-4.2.0-SNAPSHOT.jar:hedwig-protocol-4.2.0-SNAPSHOT.jar:hedwig-server-compat400-4.0.0.jar:hedwig-server-compat410-4.1.0.jar:jline-0.9.94.jar:junit-4.8.1.jar:log4j-1.2.15.jar:netty-3.2.4.Final.jar:protobuf-java-2.4.1.jar:slf4j-api-1.6.4.jar:slf4j-log4j12-1.6.4.jar:zookeeper-3.4.3.jar:zookeeper-3.4.3-tests.jar -Dmode=pub -Dlog4j.configuration=log4j.properties org.apache.hedwig.client.benchmark.HedwigBenchmark hw_client.conf
The previous error is gone. However, it seems that I can't set options (in this case, the mode) via -D: Exception in thread "main" java.lang.Exception: unknown mode: at org.apache.hedwig.client.benchmark.HedwigBenchmark.call(HedwigBenchmark.java:115) at org.apache.hedwig.client.benchmark.HedwigBenchmark.main(HedwigBenchmark.java:161) Any idea on this? I'm sorry if this is a simple Java question, I'm not that familiar with Java.. Thanks, On Wed, Nov 14, 2012 at 9:41 PM, Sijie Guo <[email protected]> wrote: > 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 >>>> >>> >>> >> >
