llap-daemon-log4j2.properties 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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 = LlapDaemonLog4j2
  18. packages = org.apache.hadoop.hive.ql.log
  19. # list of properties
  20. property.llap.daemon.log.level = INFO
  21. property.llap.daemon.root.logger = console
  22. property.llap.daemon.log.dir = .
  23. property.llap.daemon.log.file = llapdaemon.log
  24. property.llap.daemon.historylog.file = llapdaemon_history.log
  25. property.llap.daemon.log.maxfilesize = 256MB
  26. property.llap.daemon.log.maxbackupindex = 20
  27. # list of all appenders
  28. appenders = console, RFA, HISTORYAPPENDER
  29. # console appender
  30. appender.console.type = Console
  31. appender.console.name = console
  32. appender.console.target = SYSTEM_ERR
  33. appender.console.layout.type = PatternLayout
  34. appender.console.layout.pattern = %d{ISO8601} %5p [%t%x] %c{2}: %m%n
  35. # rolling file appender
  36. appender.RFA.type = RollingRandomAccessFile
  37. appender.RFA.name = RFA
  38. appender.RFA.fileName = ${sys:llap.daemon.log.dir}/${sys:llap.daemon.log.file}
  39. appender.RFA.filePattern = ${sys:llap.daemon.log.dir}/${sys:llap.daemon.log.file}_%i
  40. appender.RFA.layout.type = PatternLayout
  41. appender.RFA.layout.pattern = %d{ISO8601} %5p [%t%x] %c{2}: %m%n
  42. appender.RFA.policies.type = Policies
  43. appender.RFA.policies.size.type = SizeBasedTriggeringPolicy
  44. appender.RFA.policies.size.size = ${sys:llap.daemon.log.maxfilesize}
  45. appender.RFA.strategy.type = DefaultRolloverStrategy
  46. appender.RFA.strategy.max = ${sys:llap.daemon.log.maxbackupindex}
  47. # history file appender
  48. appender.HISTORYAPPENDER.type = RollingRandomAccessFile
  49. appender.HISTORYAPPENDER.name = HISTORYAPPENDER
  50. appender.HISTORYAPPENDER.fileName = ${sys:llap.daemon.log.dir}/${sys:llap.daemon.historylog.file}
  51. appender.HISTORYAPPENDER.filePattern = ${sys:llap.daemon.log.dir}/${sys:llap.daemon.historylog.file}_%i
  52. appender.HISTORYAPPENDER.layout.type = PatternLayout
  53. appender.HISTORYAPPENDER.layout.pattern = %m%n
  54. appender.HISTORYAPPENDER.policies.type = Policies
  55. appender.HISTORYAPPENDER.policies.size.type = SizeBasedTriggeringPolicy
  56. appender.HISTORYAPPENDER.policies.size.size = ${sys:llap.daemon.log.maxfilesize}
  57. appender.HISTORYAPPENDER.strategy.type = DefaultRolloverStrategy
  58. appender.HISTORYAPPENDER.strategy.max = ${sys:llap.daemon.log.maxbackupindex}
  59. # list of all loggers
  60. loggers = EncodedReader, NIOServerCnxn, ClientCnxnSocketNIO, DataNucleus, Datastore, JPOX, HistoryLogger, LlapIoImpl, LlapIoOrc, LlapIoCache, LlapIoLocking
  61. logger.EncodedReader.name = org.apache.hadoop.hive.ql.io.orc.encoded.EncodedReaderImpl
  62. logger.EncodedReader.level = INFO
  63. logger.LlapIoImpl.name = LlapIoImpl
  64. logger.LlapIoImpl.level = INFO
  65. logger.LlapIoOrc.name = LlapIoOrc
  66. logger.LlapIoOrc.level = WARN
  67. logger.LlapIoCache.name = LlapIoCache
  68. logger.LlapIoCache.level = WARN
  69. logger.LlapIoLocking.name = LlapIoLocking
  70. logger.LlapIoLocking.level = WARN
  71. logger.NIOServerCnxn.name = org.apache.zookeeper.server.NIOServerCnxn
  72. logger.NIOServerCnxn.level = WARN
  73. logger.ClientCnxnSocketNIO.name = org.apache.zookeeper.ClientCnxnSocketNIO
  74. logger.ClientCnxnSocketNIO.level = WARN
  75. logger.DataNucleus.name = DataNucleus
  76. logger.DataNucleus.level = ERROR
  77. logger.Datastore.name = Datastore
  78. logger.Datastore.level = ERROR
  79. logger.JPOX.name = JPOX
  80. logger.JPOX.level = ERROR
  81. logger.HistoryLogger.name = org.apache.hadoop.hive.llap.daemon.HistoryLogger
  82. logger.HistoryLogger.level = INFO
  83. logger.HistoryLogger.additivity = false
  84. logger.HistoryLogger.appenderRefs = HistoryAppender
  85. logger.HistoryLogger.appenderRef.HistoryAppender.ref = HISTORYAPPENDER
  86. # root logger
  87. rootLogger.level = ${sys:llap.daemon.log.level}
  88. rootLogger.appenderRefs = root
  89. rootLogger.appenderRef.root.ref = ${sys:llap.daemon.root.logger}