Review Board 1.7.22


SQOOP-874 Sqoop2: Provide log4j configuration for client

Review Request #9387 - Created Feb. 9, 2013 and submitted

Jarek Cecho
SQOOP-874
Reviewers
Sqoop
sqoop-sqoop2
I've added default log4j configuration file and set it to WARN. I believe that it should be fine for the client.
I've tested on real cluster that the warning about no appenders disappeared.

Diff revision 1 (Latest)

  1. client/src/main/resources/log4j.properties: Loading...
client/src/main/resources/log4j.properties
New File

    
   
1
# Licensed to the Apache Software Foundation (ASF) under one or more

    
   
2
# contributor license agreements.  See the NOTICE file distributed with

    
   
3
# this work for additional information regarding copyright ownership.

    
   
4
# The ASF licenses this file to You under the Apache License, Version 2.0

    
   
5
# (the "License"); you may not use this file except in compliance with

    
   
6
# the License.  You may obtain a copy of the License at

    
   
7
#

    
   
8
#      http://www.apache.org/licenses/LICENSE-2.0

    
   
9
#

    
   
10
# Unless required by applicable law or agreed to in writing, software

    
   
11
# distributed under the License is distributed on an "AS IS" BASIS,

    
   
12
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

    
   
13
# See the License for the specific language governing permissions and

    
   
14
# limitations under the License.

    
   
15

   

    
   
16
# Set root logger level to DEBUG and its only appender to A1.

    
   
17
log4j.rootLogger=WARN, A1

    
   
18

   

    
   
19
# A1 is set to be a ConsoleAppender.

    
   
20
log4j.appender.A1=org.apache.log4j.ConsoleAppender

    
   
21

   

    
   
22
# A1 uses PatternLayout.

    
   
23
log4j.appender.A1.layout=org.apache.log4j.PatternLayout

    
   
24
log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
  1. client/src/main/resources/log4j.properties: Loading...