blob: d176ce79407fd73e47fad6180eb5d3e1f310fceb [file] [log] [blame]
#
# 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.
#
# It's called spark-executor-log4j.properties so that it won't distract users from the other more important log4j config file: kylin-server-log4j.properties
# enable this by -Dlog4j.configuration=spark-executor-log4j.properties
log4j.rootLogger=INFO,stderr,hdfs
log4j.appender.stderr=org.apache.log4j.ConsoleAppender
log4j.appender.stderr.layout=org.apache.kylin.common.logging.SensitivePatternLayout
log4j.appender.stderr.target=System.err
#Don't add line number (%L) as it's too costly!
log4j.appender.stderr.layout.ConversionPattern=%d{ISO8601} %-5p [%t] %c{2} : %m%n
log4j.appender.hdfs=org.apache.kylin.engine.spark.common.logging.SparkExecutorHdfsAppender
log4j.appender.hdfs.hdfsWorkingDir=${kylin.hdfs.working.dir}
log4j.appender.hdfs.metadataIdentifier=${kylin.metadata.identifier}
log4j.appender.hdfs.category=${kylin.spark.category}
log4j.appender.hdfs.identifier=${kylin.spark.identifier}
log4j.appender.hdfs.jobName=${kylin.spark.jobName}
log4j.appender.hdfs.project=${kylin.spark.project}
log4j.appender.hdfs.rollingPeriod=5
log4j.appender.hdfs.logQueueCapacity=5000
#flushPeriod count as millis
log4j.appender.hdfs.flushInterval=5000
log4j.appender.hdfs.layout=org.apache.kylin.common.logging.SensitivePatternLayout
#Don't add line number (%L) as it's too costly!
log4j.appender.hdfs.layout.ConversionPattern=%d{ISO8601} %-5p [%t] %c{2} : %m%n