[ https://issues.apache.org/jira/browse/HBASE-26511?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Istvan Toth resolved HBASE-26511. --------------------------------- Resolution: Fixed Since branch-2.4 is EOL, and the fix is present on all active branches, we can close this. > hbase shell config override option does not work > ------------------------------------------------ > > Key: HBASE-26511 > URL: https://issues.apache.org/jira/browse/HBASE-26511 > Project: HBase > Issue Type: Bug > Components: shell > Affects Versions: 3.0.0-alpha-2 > Reporter: Istvan Toth > Assignee: Tushar Raina > Priority: Major > > 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: > {noformat} > ./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 > {noformat} > Something is broken in the command line parsing. -- This message was sent by Atlassian Jira (v8.20.10#820010)