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

Szehon Ho commented on HIVE-6709:
---------------------------------

Sreenivasulu can correct me if wrong, but looks like running './hive --service 
hiveserver2 --help' will print an 'unrecognized option' error, but as a side 
effect of that error, still displays the usage.  In other words, any parse 
error (even one trying to display usage) displays the usage.  

Up to you whether we want to document the defect, as it works in a weird way, 
but definitely the usage in general is good to document. 

> HiveServer2 help command is not recognizing properly.
> -----------------------------------------------------
>
>                 Key: HIVE-6709
>                 URL: https://issues.apache.org/jira/browse/HIVE-6709
>             Project: Hive
>          Issue Type: Bug
>          Components: HiveServer2
>    Affects Versions: 0.11.0, 0.12.0
>            Reporter: Y. SREENIVASULU REDDY
>            Priority: Minor
>             Fix For: 0.13.0
>
>         Attachments: HIVE-6709.patch
>
>
> Install the HiveServer,
> Then Execute the following command for help in Hive_home
> ./hive --service hiveserver2 --help
> {code}
> Starting HiveServer2
> Unrecognized option: -h
> usage: hiveserver2
>  -H,--help                        Print help information
>     --hiveconf <property=value>   Use value for given property
> {code}
> need to provide in -H instead of -h in hiverserver2.sh file
> {code}
> hiveserver2_help() {
>   hiveserver2 -H
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to