spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bravo Zhang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-20870) Update the output of spark-sql -H
Date Fri, 04 Aug 2017 01:31:01 GMT

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

Bravo Zhang commented on SPARK-20870:
-------------------------------------

Hi [~smilegator],
I can't find the code handling the help message in spark.
Is it managed in Hive project? https://github.com/apache/hive/blob/master/cli/src/java/org/apache/hadoop/hive/cli/OptionsProcessor.java

> Update the output of spark-sql -H
> ---------------------------------
>
>                 Key: SPARK-20870
>                 URL: https://issues.apache.org/jira/browse/SPARK-20870
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.2.0
>            Reporter: Xiao Li
>              Labels: starter
>
> When we input `./bin/spark-sql -H`, the output is still based on Hive. We need to check
whether all of them are working correctly. If not supported, we need to remove it from the
list. 
> Also, update the first line to `usage: spark-sql`
> {noformat}
> usage: hive
> -d,--define <key=value>          Variable subsitution to apply to hive
>                                   commands. e.g. -d A=B or --define A=B
>     --database <databasename>     Specify the database to use
> -e <quoted-query-string>         SQL from command line
> -f <filename>                    SQL from files
> -H,--help                        Print help information
>     --hiveconf <property=value>   Use value for given property
>     --hivevar <key=value>         Variable subsitution to apply to hive
>                                   commands. e.g. --hivevar A=B
> -i <filename>                    Initialization SQL file
> -S,--silent                      Silent mode in interactive shell
> -v,--verbose                     Verbose mode (echo executed SQL to the
>                                   console)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message