hive-exec-log4j2.properties 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. # Licensed to the Apache Software Foundation (ASF) under one
  2. # or more contributor license agreements. See the NOTICE file
  3. # distributed with this work for additional information
  4. # regarding copyright ownership. The ASF licenses this file
  5. # to you under the Apache License, Version 2.0 (the
  6. # "License"); you may not use this file except in compliance
  7. # with 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. status = INFO
  17. name = HiveExecLog4j2
  18. packages = org.apache.hadoop.hive.ql.log
  19. # list of properties
  20. property.hive.log.level = INFO
  21. property.hive.root.logger = FA
  22. property.hive.query.id = hadoop
  23. property.hive.log.dir = ${sys:java.io.tmpdir}/${sys:user.name}
  24. property.hive.log.file = ${sys:hive.query.id}.log
  25. # list of all appenders
  26. appenders = console, FA
  27. # console appender
  28. appender.console.type = Console
  29. appender.console.name = console
  30. appender.console.target = SYSTEM_ERR
  31. appender.console.layout.type = PatternLayout
  32. appender.console.layout.pattern = %d{ISO8601} %5p [%t] %c{2}: %m%n
  33. # simple file appender
  34. appender.FA.type = RandomAccessFile
  35. appender.FA.name = FA
  36. appender.FA.fileName = ${sys:hive.log.dir}/${sys:hive.log.file}
  37. appender.FA.layout.type = PatternLayout
  38. appender.FA.layout.pattern = %d{ISO8601} %5p [%t] %c{2}: %m%n
  39. # list of all loggers
  40. loggers = NIOServerCnxn, ClientCnxnSocketNIO, DataNucleus, Datastore, JPOX
  41. logger.NIOServerCnxn.name = org.apache.zookeeper.server.NIOServerCnxn
  42. logger.NIOServerCnxn.level = WARN
  43. logger.ClientCnxnSocketNIO.name = org.apache.zookeeper.ClientCnxnSocketNIO
  44. logger.ClientCnxnSocketNIO.level = WARN
  45. logger.DataNucleus.name = DataNucleus
  46. logger.DataNucleus.level = ERROR
  47. logger.Datastore.name = Datastore
  48. logger.Datastore.level = ERROR
  49. logger.JPOX.name = JPOX
  50. logger.JPOX.level = ERROR
  51. # root logger
  52. rootLogger.level = ${sys:hive.log.level}
  53. rootLogger.appenderRefs = root
  54. rootLogger.appenderRef.root.ref = ${sys:hive.root.logger}