|
@@ -0,0 +1,126 @@
|
|
|
+<?xml version="1.0"?>
|
|
|
+<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
|
|
|
+<!--
|
|
|
+/**
|
|
|
+ * 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.
|
|
|
+ */
|
|
|
+-->
|
|
|
+
|
|
|
+<configuration supports_final="false" supports_adding_forbidden="true">
|
|
|
+ <property>
|
|
|
+ <name>content</name>
|
|
|
+ <description>Custom log4j.properties</description>
|
|
|
+ <value>
|
|
|
+# 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.
|
|
|
+status = WARN
|
|
|
+name = LlapDaemonLog4j2
|
|
|
+packages = org.apache.hadoop.hive.ql.log
|
|
|
+
|
|
|
+# list of properties
|
|
|
+property.llap.daemon.log.level = WARN
|
|
|
+property.llap.daemon.root.logger = console
|
|
|
+property.llap.daemon.log.dir = .
|
|
|
+property.llap.daemon.log.file = llapdaemon.log
|
|
|
+property.llap.daemon.historylog.file = llapdaemon_history.log
|
|
|
+property.llap.daemon.log.maxfilesize = 256MB
|
|
|
+property.llap.daemon.log.maxbackupindex = 20
|
|
|
+
|
|
|
+# list of all appenders
|
|
|
+appenders = console, RFA, HISTORYAPPENDER
|
|
|
+
|
|
|
+# console appender
|
|
|
+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} [%t%x] %p %c{2} : %m%n
|
|
|
+
|
|
|
+# rolling file appender
|
|
|
+appender.RFA.type = RollingFile
|
|
|
+appender.RFA.name = RFA
|
|
|
+appender.RFA.fileName = ${sys:llap.daemon.log.dir}/${sys:llap.daemon.log.file}
|
|
|
+appender.RFA.filePattern = ${sys:llap.daemon.log.dir}/${sys:llap.daemon.log.file}_%i
|
|
|
+appender.RFA.layout.type = PatternLayout
|
|
|
+appender.RFA.layout.pattern = %d{ISO8601} %-5p [%t%x]: %c{2} (%F:%M(%L)) - %m%n
|
|
|
+appender.RFA.policies.type = Policies
|
|
|
+appender.RFA.policies.size.type = SizeBasedTriggeringPolicy
|
|
|
+appender.RFA.policies.size.size = ${sys:llap.daemon.log.maxfilesize}
|
|
|
+appender.RFA.strategy.type = DefaultRolloverStrategy
|
|
|
+appender.RFA.strategy.max = ${sys:llap.daemon.log.maxbackupindex}
|
|
|
+
|
|
|
+# history file appender
|
|
|
+appender.HISTORYAPPENDER.type = RollingFile
|
|
|
+appender.HISTORYAPPENDER.name = HISTORYAPPENDER
|
|
|
+appender.HISTORYAPPENDER.fileName = ${sys:llap.daemon.log.dir}/${sys:llap.daemon.historylog.file}
|
|
|
+appender.HISTORYAPPENDER.filePattern = ${sys:llap.daemon.log.dir}/${sys:llap.daemon.historylog.file}_%i
|
|
|
+appender.HISTORYAPPENDER.layout.type = PatternLayout
|
|
|
+appender.HISTORYAPPENDER.layout.pattern = %m%n
|
|
|
+appender.HISTORYAPPENDER.policies.type = Policies
|
|
|
+appender.HISTORYAPPENDER.policies.size.type = SizeBasedTriggeringPolicy
|
|
|
+appender.HISTORYAPPENDER.policies.size.size = ${sys:llap.daemon.log.maxfilesize}
|
|
|
+appender.HISTORYAPPENDER.strategy.type = DefaultRolloverStrategy
|
|
|
+appender.HISTORYAPPENDER.strategy.max = ${sys:llap.daemon.log.maxbackupindex}
|
|
|
+
|
|
|
+# list of all loggers
|
|
|
+loggers = NIOServerCnxn, ClientCnxnSocketNIO, DataNucleus, Datastore, JPOX, HistoryLogger
|
|
|
+
|
|
|
+logger.NIOServerCnxn.name = org.apache.zookeeper.server.NIOServerCnxn
|
|
|
+logger.NIOServerCnxn.level = WARN
|
|
|
+
|
|
|
+logger.ClientCnxnSocketNIO.name = org.apache.zookeeper.ClientCnxnSocketNIO
|
|
|
+logger.ClientCnxnSocketNIO.level = WARN
|
|
|
+
|
|
|
+logger.DataNucleus.name = DataNucleus
|
|
|
+logger.DataNucleus.level = ERROR
|
|
|
+
|
|
|
+logger.Datastore.name = Datastore
|
|
|
+logger.Datastore.level = ERROR
|
|
|
+
|
|
|
+logger.JPOX.name = JPOX
|
|
|
+logger.JPOX.level = ERROR
|
|
|
+
|
|
|
+logger.HistoryLogger.name = org.apache.hadoop.hive.llap.daemon.HistoryLogger
|
|
|
+logger.HistoryLogger.level = WARN
|
|
|
+logger.HistoryLogger.additivity = false
|
|
|
+logger.HistoryLogger.appenderRefs = HistoryAppender
|
|
|
+logger.HistoryLogger.appenderRef.HistoryAppender.ref = HISTORYAPPENDER
|
|
|
+
|
|
|
+# root logger
|
|
|
+rootLogger.level = ${sys:llap.daemon.log.level}
|
|
|
+rootLogger.appenderRefs = root
|
|
|
+rootLogger.appenderRef.root.ref = ${sys:llap.daemon.root.logger}
|
|
|
+ </value>
|
|
|
+ <value-attributes>
|
|
|
+ <type>content</type>
|
|
|
+ <show-property-name>false</show-property-name>
|
|
|
+ </value-attributes>
|
|
|
+ </property>
|
|
|
+</configuration>
|