Return-Path: Delivered-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Received: (qmail 96710 invoked from network); 9 Mar 2011 22:51:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Mar 2011 22:51:21 -0000 Received: (qmail 48881 invoked by uid 500); 9 Mar 2011 22:51:21 -0000 Delivered-To: apmail-hadoop-mapreduce-issues-archive@hadoop.apache.org Received: (qmail 48853 invoked by uid 500); 9 Mar 2011 22:51:21 -0000 Mailing-List: contact mapreduce-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mapreduce-issues@hadoop.apache.org Delivered-To: mailing list mapreduce-issues@hadoop.apache.org Received: (qmail 48845 invoked by uid 99); 9 Mar 2011 22:51:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Mar 2011 22:51:21 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Mar 2011 22:51:20 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 8F7563A1813 for ; Wed, 9 Mar 2011 22:50:59 +0000 (UTC) Date: Wed, 9 Mar 2011 22:50:59 +0000 (UTC) From: "Todd Lipcon (JIRA)" To: mapreduce-issues@hadoop.apache.org Message-ID: <2118417727.9445.1299711059584.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <724848734.8962.1299701160588.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Updated: (MAPREDUCE-2372) TaskLogAppender mechanism shouldn't be set in log4j.properties MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MAPREDUCE-2372?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Todd Lipcon updated MAPREDUCE-2372: ----------------------------------- Attachment: mapreduce-2372.txt Here's a patch which allows the settings to come directly from system properties. Unfortunately, TLA isn't covered by any test cases yet, so nothing to change there. We will need a patch on Common to remove the settings from log4j.properties as well. > TaskLogAppender mechanism shouldn't be set in log4j.properties > -------------------------------------------------------------- > > Key: MAPREDUCE-2372 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-2372 > Project: Hadoop Map/Reduce > Issue Type: Improvement > Components: task > Affects Versions: 0.22.0 > Reporter: Todd Lipcon > Fix For: 0.22.0 > > Attachments: mapreduce-2372.txt > > > The TaskLogAppender log4j appender relies on using log4j.properties to pass in some Java system properties into properties of the logger. This is problematic since we've often found that users have customized log4j.properties and don't upgrade it when they upgrade the version of Hadoop. > Since this is really an internal mechanism of how the task runner passes task info to the TLA, we shouldn't rely on these settings in log4j.properties at all. Rather, we should just get the system properties directly from System.getProperty. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira