You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Kiran Kumar Maturi (Jira)" <ji...@apache.org> on 2022/04/20 06:07:00 UTC

[jira] [Assigned] (HBASE-26511) hbase shell config override option does not work

     [ https://issues.apache.org/jira/browse/HBASE-26511?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kiran Kumar Maturi reassigned HBASE-26511:
------------------------------------------

    Assignee: Kiran Kumar Maturi

> 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: Kiran Kumar Maturi
>            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.7#820007)