HyukjinKwon commented on a change in pull request #29631:
URL: https://github.com/apache/spark/pull/29631#discussion_r485356997



##########
File path: 
sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkSQLCLIDriver.scala
##########
@@ -320,9 +319,6 @@ private[hive] class SparkSQLCLIDriver extends CliDriver 
with Logging {
   // because the Hive unit tests do not go through the main() code path.
   if (!isRemoteMode) {
     SparkSQLEnv.init()
-    if (sessionState.getIsSilent) {
-      SparkSQLEnv.sparkContext.setLogLevel(Level.WARN.toString)

Review comment:
       For example,
   
   ```bash
   cd conf
   echo 
"log4j.logger.org.apache.spark.sql.hive.thriftserver.SparkSQLCLIDriver=INFO" >> 
log4j.properties.template
   mv log4j.properties.template log4j.properties
   cd ..
   ./bin/spark-sql -S
   ```
   ```
   20/09/09 14:58:27 WARN NativeCodeLoader: Unable to load native-hadoop 
library for your platform... using builtin-java classes where applicable
   20/09/09 14:58:27 INFO HiveConf: Found configuration file null
   20/09/09 14:58:28 INFO SharedState: spark.sql.warehouse.dir is not set, but 
hive.metastore.warehouse.dir is set. Setting spark.sql.warehouse.dir to the 
value of hive.metastore.warehouse.dir ('/user/hive/warehouse').
   20/09/09 14:58:28 INFO SharedState: Warehouse path is '/user/hive/warehouse'.
   ...
   ```




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to