[ 
https://issues.apache.org/jira/browse/HBASE-26543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17469648#comment-17469648
 ] 

Sean Busbey commented on HBASE-26543:
-------------------------------------

{quote}Are we intending to emulate java behavior for the -D system 
properties?{quote}

I don't believe we are. I'm specifically trying to match the behavior of the 
hbase shell prior to HBASE-24772. in our prior release we expressly did try to 
support args that look like {{-D prop=value}}. I believe this was introduced in 
HBASE-21567.

It's not stated anywhere in that jira, but it looks to me like it's trying to 
match the config definition handling from [hadoop generic cli 
args|https://hadoop.apache.org/docs/r3.3.1/hadoop-project-dist/hadoop-common/CommandsManual.html#Generic_Options]
 ala Hadoop's 
[ToolRunner|https://hadoop.apache.org/docs/r3.3.1/api/org/apache/hadoop/util/ToolRunner.html].
 Which makes sense given our project background.



> HBase shell no longer properly parses several args
> --------------------------------------------------
>
>                 Key: HBASE-26543
>                 URL: https://issues.apache.org/jira/browse/HBASE-26543
>             Project: HBase
>          Issue Type: Bug
>          Components: shell
>    Affects Versions: 3.0.0-alpha-1, 2.5.0
>            Reporter: Sean Busbey
>            Assignee: Sean Busbey
>            Priority: Blocker
>             Fix For: 2.5.0, 2.6.0, 3.0.0-alpha-3
>
>
> shell cli arg parsing is broken:
>  * debug is eating a possible arg
>  * -D handling is consuming part of ARGV without declaring it
>  * -Dfoo=bar no longer works
>  * non-interactive mode is eating a possible arg
>  * top level definitions is eating a possible arg
>  * script2run is being ignored entirely



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to