Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-26511

hbase shell config override option does not work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0-alpha-2
    • None
    • shell
    • None

    Description

      According to the docs, we should be able to specify properties on the command line with the -D switch.

      https://hbase.apache.org/book.html#_overriding_configuration_starting_the_hbase_shell

      However:

      ./bin/hbase shell -Dhbase.zookeeper.quorum=ZK0.remote.cluster.example.org,ZK1.remote.cluster.example.org,ZK2.remote.cluster.example.org -Draining=false
      
      Usage: shell [OPTIONS] [SCRIPTFILE [ARGUMENTS]]
      
       -d | --debug            Set DEBUG log levels.
       -h | --help             This help.
       -n | --noninteractive   Do not run within an IRB session and exit with non-zero
                               status on first error.
       --top-level-defs        Compatibility flag to export HBase shell commands onto
                               Ruby's main object
       -Dkey=value             Pass hbase-*.xml Configuration overrides. For example, to
                               use an alternate zookeeper ensemble, pass:
                                 -Dhbase.zookeeper.quorum=zookeeper.example.org
                               For faster fail, pass the below and vary the values:
                                 -Dhbase.client.retries.number=7
                                 -Dhbase.ipc.client.connect.max.retries=3
      classpath:/jar-bootstrap.rb: invalid option -- b
      GetoptLong::InvalidOption: invalid option -- b
        set_error at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/getoptlong.rb:395
              get at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/getoptlong.rb:572
             each at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/getoptlong.rb:603
             loop at org/jruby/RubyKernel.java:1442
             each at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/getoptlong.rb:602
           <main> at classpath:/jar-bootstrap.rb:98
      

      Something is broken in the command line parsing.

      Attachments

        Issue Links

          Activity

            People

              tusharRaina Tushar Raina
              stoty Istvan Toth
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: