Skip to content

Commit

Permalink
[SPARK-35143][SQL][SHELL]Add default log level config for spark-sql
Browse files Browse the repository at this point in the history
  • Loading branch information
hddong committed Apr 20, 2021
1 parent bad4b6f commit cec327b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions conf/log4j.properties.template
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@ log4j.appender.console.target=System.err
log4j.appender.console.layout=org.apache.log4j.PatternLayout
log4j.appender.console.layout.ConversionPattern=%d{yy/MM/dd HH:mm:ss} %p %c{1}: %m%n

# Set the default spark-shell log level to WARN. When running the spark-shell, the
# log level for this class is used to overwrite the root logger's log level, so that
# the user can have different defaults for the shell and regular Spark apps.
# Set the default spark-shell/spark-sql log level to WARN. When running the
# spark-shell/spark-sql, the log level for this class is used to overwrite
# the root logger's log level, so that the user can have different defaults
# for the shell and regular Spark apps.
log4j.logger.org.apache.spark.repl.Main=WARN
log4j.logger.org.apache.spark.sql.hive.thriftserver.SparkSQLCLIDriver=WARN

# Settings to quiet third party logs that are too verbose
log4j.logger.org.sparkproject.jetty=WARN
Expand Down

0 comments on commit cec327b

Please sign in to comment.