-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-6305][BUILD][FOLLOWUP] Remove log4j1 properties files #34941
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,63 @@ | ||
| # | ||
| # Licensed to the Apache Software Foundation (ASF) under one or more | ||
| # contributor license agreements. See the NOTICE file distributed with | ||
| # this work for additional information regarding copyright ownership. | ||
| # The ASF licenses this file to You under the Apache License, Version 2.0 | ||
| # (the "License"); you may not use this file except in compliance with | ||
| # the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
| # | ||
|
|
||
| # Set everything to be logged to the console | ||
| rootLogger.level = info | ||
| rootLogger.appenderRef.file.ref = console | ||
|
|
||
| appender.console.type = Console | ||
| appender.console.name = console | ||
| appender.console.target = SYSTEM_ERR | ||
| appender.console.layout.type = PatternLayout | ||
| appender.console.layout.pattern = %d{yy/MM/dd HH:mm:ss} %p %c{1}: %m%n | ||
|
|
||
| # Set the default spark-shell/spark-sql log level to WARN. When running the | ||
| # spark-shell/spark-sql, the log level for these classes 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. | ||
| logger.repl.name = org.apache.spark.repl.Main | ||
| logger.repl.level = warn | ||
|
|
||
| logger.thriftserver.name = org.apache.spark.sql.hive.thriftserver.SparkSQLCLIDriver | ||
| logger.thriftserver.level = warn | ||
|
|
||
| # Settings to quiet third party logs that are too verbose | ||
| logger.jetty1.name = org.sparkproject.jetty | ||
| logger.jetty1.level = warn | ||
| logger.jetty2.name = org.sparkproject.jetty.util.component.AbstractLifeCycle | ||
| logger.jetty2.level = error | ||
| logger.replexprTyper.name = org.apache.spark.repl.SparkIMain$exprTyper | ||
| logger.replexprTyper.level = info | ||
| logger.replSparkILoopInterpreter.name = org.apache.spark.repl.SparkILoop$SparkILoopInterpreter | ||
| logger.replSparkILoopInterpreter.level = info | ||
| logger.parquet1.name = org.apache.parquet | ||
| logger.parquet1.level = error | ||
| logger.parquet2.name = parquet | ||
| logger.parquet2.level = error | ||
|
|
||
| # SPARK-9183: Settings to avoid annoying messages when looking up nonexistent UDFs in SparkSQL with Hive support | ||
| logger.RetryingHMSHandler.name = org.apache.hadoop.hive.metastore.RetryingHMSHandler | ||
| logger.RetryingHMSHandler.level = fatal | ||
| logger.FunctionRegistry.name = org.apache.hadoop.hive.ql.exec.FunctionRegistry | ||
| logger.FunctionRegistry.level = error | ||
|
|
||
| # For deploying Spark ThriftServer | ||
| # SPARK-34128: Suppress undesirable TTransportException warnings involved in THRIFT-4805 | ||
| appender.console.filter.1.type = MarkerFilter | ||
| appender.console.filter.1.marker = Thrift error occurred during processing of message | ||
| appender.console.filter.1.onMatch = deny | ||
| appender.console.filter.1.onMismatch = neutral | ||
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
log4j2 supports both
propertiesandxmlconfigurations. Do Spark preferproperties? I found that the official documents of log4j2 are always show demos usexmlThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems will follow the user's behavior.