log4j.properties 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. # Set everything to be logged to the console
  18. log4j.rootCategory=INFO, console
  19. log4j.appender.console=org.apache.log4j.ConsoleAppender
  20. log4j.appender.console.target=System.err
  21. log4j.appender.console.layout=org.apache.log4j.PatternLayout
  22. log4j.appender.console.layout.ConversionPattern=%d{yy/MM/dd HH:mm:ss} %p %c{1}: %m%n
  23. # Set the default spark-shell log level to WARN. When running the spark-shell, the
  24. # log level for this class is used to overwrite the root logger's log level, so that
  25. # the user can have different defaults for the shell and regular Spark apps.
  26. log4j.logger.org.apache.spark.repl.Main=WARN
  27. # Settings to quiet third party logs that are too verbose
  28. log4j.logger.org.spark_project.jetty=WARN
  29. log4j.logger.org.spark_project.jetty.util.component.AbstractLifeCycle=ERROR
  30. log4j.logger.org.apache.spark.repl.SparkIMain$exprTyper=INFO
  31. log4j.logger.org.apache.spark.repl.SparkILoop$SparkILoopInterpreter=INFO
  32. log4j.logger.org.apache.parquet=ERROR
  33. log4j.logger.parquet=ERROR
  34. # SPARK-9183: Settings to avoid annoying messages when looking up nonexistent UDFs in SparkSQL with Hive support
  35. log4j.logger.org.apache.hadoop.hive.metastore.RetryingHMSHandler=FATAL
  36. log4j.logger.org.apache.hadoop.hive.ql.exec.FunctionRegistry=ERROR