mirror of
https://github.com/apache/impala.git
synced 2025-12-19 18:12:08 -05:00
log4j.properties is required to configure log4j before logs from it are redirected to glog (done in GlogAppender#Install()). This is crucial to show error logs during initialization, especially while lauching the JVM. See the JIRA description for an example. This copies log4j.properties from fe/src/test/resources directly since it hasn't changed for years. Change-Id: Iee0b9699ef313aa8e94bd351fa51fad3ea0cdf57 Reviewed-on: http://gerrit.cloudera.org:8080/21293 Reviewed-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com> Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
29 lines
1.3 KiB
Properties
Executable File
29 lines
1.3 KiB
Properties
Executable File
# 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.
|
|
|
|
# Define some default values that can be overridden by system properties
|
|
# Don't use hadoop.root.logger because Hadoop's config scripts override it
|
|
impala.hadoop.root.logger=INFO,console
|
|
|
|
# Define the root logger to the system property "impala.hadoop.root.logger".
|
|
log4j.rootLogger=${impala.hadoop.root.logger}
|
|
|
|
log4j.appender.console=org.apache.log4j.ConsoleAppender
|
|
log4j.appender.console.target=System.err
|
|
log4j.appender.console.layout=org.apache.log4j.PatternLayout
|
|
log4j.appender.console.layout.ConversionPattern=%d{yy/MM/dd HH:mm:ss} %p %c{2}: %m%n
|