Skip to content

Commit f1f7ae4

Browse files
committed
[SPARK-32772][SQL][FOLLOWUP] Remove legacy silent support mode for spark-sql CLI
### What changes were proposed in this pull request? Remove legacy silent support mode for spark-sql CLI. ### Why are the changes needed? #29619 add new silent mode. We can remove legacy silent support mode. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Manual test: ``` spark-sql> LM-SHC-16508156:spark yumwang$ bin/spark-sql -S NOTE: SPARK_PREPEND_CLASSES is set, placing locally compiled Spark classes ahead of assembly. 20/09/03 09:06:12 WARN NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable Using Spark's default log4j profile: org/apache/spark/log4j-defaults.properties Setting default log level to "WARN". To adjust logging level use sc.setLogLevel(newLevel). For SparkR, use setLogLevel(newLevel). 20/09/03 09:06:16 WARN HiveConf: HiveConf of name hive.stats.jdbc.timeout does not exist 20/09/03 09:06:16 WARN HiveConf: HiveConf of name hive.stats.retries.wait does not exist 20/09/03 09:06:19 WARN ObjectStore: Version information not found in metastore. hive.metastore.schema.verification is not enabled so recording the schema version 2.3.0 20/09/03 09:06:19 WARN ObjectStore: setMetaStoreSchemaVersion called but recording version is disabled: version = 2.3.0, comment = Set by MetaStore yumwang10.226.196.190 spark-sql> select * from test1; 1 spark-sql> select * from test1; 1 ``` Closes #29631 from wangyum/SPARK-32772. Authored-by: Yuming Wang <yumwang@ebay.com> Signed-off-by: Yuming Wang <yumwang@ebay.com>
1 parent e693df2 commit f1f7ae4

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkSQLCLIDriver.scala

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ import org.apache.hadoop.hive.ql.Driver
3535
import org.apache.hadoop.hive.ql.processors._
3636
import org.apache.hadoop.hive.ql.session.SessionState
3737
import org.apache.hadoop.security.{Credentials, UserGroupInformation}
38-
import org.apache.log4j.Level
3938
import org.apache.thrift.transport.TSocket
4039
import sun.misc.{Signal, SignalHandler}
4140

@@ -320,9 +319,6 @@ private[hive] class SparkSQLCLIDriver extends CliDriver with Logging {
320319
// because the Hive unit tests do not go through the main() code path.
321320
if (!isRemoteMode) {
322321
SparkSQLEnv.init()
323-
if (sessionState.getIsSilent) {
324-
SparkSQLEnv.sparkContext.setLogLevel(Level.WARN.toString)
325-
}
326322
} else {
327323
// Hive 1.2 + not supported in CLI
328324
throw new RuntimeException("Remote operations not supported")

0 commit comments

Comments
 (0)