You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bookkeeper.apache.org by "tmzk1005 (via GitHub)" <gi...@apache.org> on 2024/03/22 03:29:38 UTC

[I] Confused output while use comand line option --help to show bookie usage [bookkeeper]

tmzk1005 opened a new issue, #4240:
URL: https://github.com/apache/bookkeeper/issues/4240

   **BUG REPORT**
   
   ***Describe the bug***
   
   When execute `bin/bookkeeper bookie -help` to see the command line usage. The output is like this:
   
   ```
   2024-03-22T11:07:36,335 - ERROR - [main:Main@242] - Error parsing command line arguments : 
   java.lang.IllegalArgumentException: null
   	at org.apache.bookkeeper.server.Main.parseArgs(Main.java:113) ~[org.apache.bookkeeper-bookkeeper-server-4.18.0-SNAPSHOT.jar:4.18.0-SNAPSHOT]
   	at org.apache.bookkeeper.server.Main.parseCommandLine(Main.java:240) ~[org.apache.bookkeeper-bookkeeper-server-4.18.0-SNAPSHOT.jar:4.18.0-SNAPSHOT]
   	at org.apache.bookkeeper.server.Main.doMain(Main.java:208) ~[org.apache.bookkeeper-bookkeeper-server-4.18.0-SNAPSHOT.jar:4.18.0-SNAPSHOT]
   	at org.apache.bookkeeper.server.Main.main(Main.java:199) ~[org.apache.bookkeeper-bookkeeper-server-4.18.0-SNAPSHOT.jar:4.18.0-SNAPSHOT]
   null
   usage: BookieServer [options]
          [-c <arg>] [-h] [-hp <arg>] [-i <arg>] [-j <arg>] [-l <arg>] [-m
          <arg>] [-p <arg>] [-r] [-withAutoRecovery] [-z <arg>]
   
   BookieServer provide an interface to start a bookie with configuration
   file and/or arguments.The settings in configuration file will be overwrite
   by provided arguments.
   Options including:
    -c,--conf <arg>           Configuration for Bookie Server
    -h,--help                 Print help message
    -hp,--httpport <arg>      bookie http port exported
    -i,--indexdirs <arg>      bookie index directories
    -j,--journal <arg>        bookie journal directory
    -l,--ledgerdirs <arg>     bookie ledgers directories
    -m,--zkledgerpath <arg>   Zookeeper ledgers root path
    -p,--bookieport <arg>     bookie port exported
    -r,--readOnly             Force Start a ReadOnly Bookie server
    -withAutoRecovery         Start Autorecovery service Bookie server
    -z,--zkserver <arg>       Zookeeper Server
   Here is an example:
   BookieServer -c bookie.conf -z localhost:2181 -m /bookkeeper/ledgers -p
   3181 -j /mnt/journal -i "/mnt/index1 /mnt/index2" -l "/mnt/ledger1
   /mnt/ledger2 /mnt/ledger3"
   ```
   
   The usage information shows that option `--help`  is supported, but there is some error log while using it.
   
   This is not a big problem, only makes the user (especially newbie to bookkeeper like me) a little bit confused about the error log. I think just the normal usage information without error log would be better.
   
   ***To Reproduce***
   
   execute `bin/bookkeeper bookie -help`
   
   ***Expected behavior***
   
   Only normal usage information without error log.
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@bookkeeper.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Confused output while use comand line option --help to show bookie usage [bookkeeper]

Posted by "nicoloboschi (via GitHub)" <gi...@apache.org>.
nicoloboschi closed issue #4240: Confused output while use comand line option --help to show bookie usage
URL: https://github.com/apache/bookkeeper/issues/4240


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@bookkeeper.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org