You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2019/04/23 06:39:43 UTC

[GitHub] [pulsar] murong00 opened a new issue #4106: Improve usage hints for pulsar-perf subcommands

murong00 opened a new issue #4106: Improve usage hints for pulsar-perf subcommands
URL: https://github.com/apache/pulsar/issues/4106
 
 
   **Describe the bug**
   When running the subcommands of `pulsar-perf` without any parameters someone may encounter as below:
   ```
   $ bin/pulsar-perf managed-ledger
   ...
   Exception in thread "main" java.lang.NullPointerException
   	at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:770)
   	at org.apache.bookkeeper.zookeeper.ZooKeeperClient$Builder.build(ZooKeeperClient.java:225)
   	at org.apache.bookkeeper.mledger.impl.ManagedLedgerFactoryImpl.<init>(ManagedLedgerFactoryImpl.java:104)
   	at org.apache.pulsar.testclient.ManagedLedgerWriter.main(ManagedLedgerWriter.java:171)
   
   $ bin/pulsar-perf monitor-brokers
   Exception in thread "main" java.lang.RuntimeException: com.beust.jcommander.ParameterException: The following option is required: --connect-string
   
   $ bin/pulsar-perf read
   Main parameters are required ("persistent://prop/ns/my-topic")
   Usage: pulsar-perf-reader [options] persistent://prop/ns/my-topic 
   ```
   We should optimize the description for better usage.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services