GitHub user wangyum opened a pull request:
https://github.com/apache/spark/pull/17449
[SPARK-20120][SQL] spark-sql support silent mode
## What changes were proposed in this pull request?
It is similar to Hive silent mode, just show the query result. see: [Hive
LanguageManual+Cli](https://cwiki.apache.org/confluence/display/Hive/LanguageManual+Cli)
and [the implementation of Hive silent
mode](https://github.com/apache/hive/blob/release-1.2.1/ql/src/java/org/apache/hadoop/hive/ql/session/SessionState.java#L948-L950).
This PR set the Logger level to `WARN` to get similar result.
## How was this patch tested?
manual tests
![manual test spark sql silent
mode](https://cloud.githubusercontent.com/assets/5399861/24390165/989b7780-13b9-11e7-8496-6e68f55757e3.gif)
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/wangyum/spark SPARK-20120
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/17449.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #17449
commit a6e8f5a4fb7d26b5c7dfea4823534026ad53f654
Author: Yuming Wang
Date: 2017-03-28T03:13:43Z
spark-sql support silent mode.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---
-
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org