Showing
1 changed file
with
48 additions
and
0 deletions
src/main/resources/log4j.properties
0 → 100644
1 | +# | ||
2 | +# Licensed to the Apache Software Foundation (ASF) under one or more | ||
3 | +# contributor license agreements. See the NOTICE file distributed with | ||
4 | +# this work for additional information regarding copyright ownership. | ||
5 | +# The ASF licenses this file to You under the Apache License, Version 2.0 | ||
6 | +# (the "License"); you may not use this file except in compliance with | ||
7 | +# the License. You may obtain a copy of the License at | ||
8 | +# | ||
9 | +# http://www.apache.org/licenses/LICENSE-2.0 | ||
10 | +# | ||
11 | +# Unless required by applicable law or agreed to in writing, software | ||
12 | +# distributed under the License is distributed on an "AS IS" BASIS, | ||
13 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
14 | +# See the License for the specific language governing permissions and | ||
15 | +# limitations under the License. | ||
16 | +# | ||
17 | + | ||
18 | +# Set everything to be logged to the console | ||
19 | +log4j.rootCategory=WARN, console | ||
20 | +log4j.logger.com.yoho=INFO, console | ||
21 | +log4j.additivity.com.yoho=false | ||
22 | + | ||
23 | +log4j.logger.org.apache.hadoop=WARN, console | ||
24 | +log4j.additivity.org.apache.hadoop=false | ||
25 | +log4j.logger.org.apache.spark=WARN, console | ||
26 | +log4j.additivity.org.apache.spark=false | ||
27 | + | ||
28 | + | ||
29 | + | ||
30 | +log4j.appender.console=org.apache.log4j.ConsoleAppender | ||
31 | +log4j.appender.console.target=System.err | ||
32 | +log4j.appender.console.layout=org.apache.log4j.PatternLayout | ||
33 | +log4j.appender.console.layout.ConversionPattern=%d{yy/MM/dd HH:mm:ss} %p %c{1}: %m%n | ||
34 | + | ||
35 | +# Set the default spark-shell log level to WARN. When running the spark-shell, the | ||
36 | +# log level for this class is used to overwrite the root logger's log level, so that | ||
37 | +# the user can have different defaults for the shell and regular Spark apps. | ||
38 | +log4j.logger.org.apache.spark.repl.Main=WARN | ||
39 | + | ||
40 | +# Settings to quiet third party logs that are too verbose | ||
41 | +log4j.logger.org.spark_project.jetty=WARN | ||
42 | +log4j.logger.org.spark_project.jetty.util.component.AbstractLifeCycle=ERROR | ||
43 | +log4j.logger.org.apache.spark.repl.SparkIMain$exprTyper=INFO | ||
44 | +log4j.logger.org.apache.spark.repl.SparkILoop$SparkILoopInterpreter=INFO | ||
45 | + | ||
46 | +# SPARK-9183: Settings to avoid annoying messages when looking up nonexistent UDFs in SparkSQL with Hive support | ||
47 | +log4j.logger.org.apache.hadoop.hive.metastore.RetryingHMSHandler=FATAL | ||
48 | +log4j.logger.org.apache.hadoop.hive.ql.exec.FunctionRegistry=ERROR |
-
Please register or login to post a comment