Uploaded image for project: 'Bookkeeper'
  1. Bookkeeper
  2. BOOKKEEPER-966

change the bookieServer cmdline to make conf-file and option co-exist

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.5.0
    • None
    • None

    Description

      Currently, when using bookieServer cmdline to start a bookie, you will either give it a cofiguration file by "-c booke.conf"; or add some options like "<bookie_port> <zk_servers> <journal_dir> <ledger_dir [ledger_dir]>" in a fix sequential.
      It may not satisfy some of the requirement. So changed it to be co-exist for configuration file and options.

      By this change, it will first use settings in configuration file; and then use options to overwrite some of the settings, if there are some options provided.

      Here is an example after this change:
      BookieServer -c bookie.conf -z localhost:2181 -m /bookkeeper/ledgers -p 3181 -j /mnt/journal -l "/mnt/ledger1 /mnt/ledger2 /mnt/ledger3”
      Here, in this command:
      -z is for “Zookeeper client instance”;
      -m is for "Zookeeper ledgers root path for bookies";
      -p is for "bookie service port exported";
      -j is for "bookie journal directory";
      -l is for "bookie ledgers directories".

      Attachments

        Issue Links

          Activity

            People

              zhaijia Jia Zhai
              zhaijia Jia Zhai
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: