Hi Haoyan,

You need to pass a few arguments to the benchmark. The mode specifies
 whether you're benching publishing or subscriptions, so it can be
 "pub" or "sub" (or "recv" but im not sure what that is).

The command I've used for benchmarking in the past is.
bookkeeper/hedwig-server/bin/hedwig 
org.apache.hedwig.client.benchmark.HedwigBenchmark -mode pub -nMsgs 1000000 
-nTopics 100 -defaultHub 192.168.0.1:4081

You can see what the options are and what they mean in:
https://github.com/apache/bookkeeper/blob/trunk/hedwig-client/src/main/java/org/apache/hedwig/client/benchmark/HedwigBenchmark.java


-Ivan

Reply via email to