You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Prashant Sharma (JIRA)" <ji...@apache.org> on 2017/07/07 11:55:01 UTC
[jira] [Commented] (SPARK-20870) Update the output of spark-sql -H
[ https://issues.apache.org/jira/browse/SPARK-20870?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16077988#comment-16077988 ]
Prashant Sharma commented on SPARK-20870:
-----------------------------------------
Is it okay to use, https://github.com/scopt/scopt library for doing this in `SparkSQLCLIDriver`. The library has been around for a while and does not depend on anything else.
> 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