Return-Path: X-Original-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D36074687 for ; Thu, 2 Jun 2011 14:22:30 +0000 (UTC) Received: (qmail 6215 invoked by uid 500); 2 Jun 2011 14:22:30 -0000 Delivered-To: apmail-hadoop-mapreduce-issues-archive@hadoop.apache.org Received: (qmail 6172 invoked by uid 500); 2 Jun 2011 14:22:30 -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 6164 invoked by uid 99); 2 Jun 2011 14:22:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Jun 2011 14:22:30 +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; Thu, 02 Jun 2011 14:22:28 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 984D0F0699 for ; Thu, 2 Jun 2011 14:21:47 +0000 (UTC) Date: Thu, 2 Jun 2011 14:21:47 +0000 (UTC) From: "Devaraj K (JIRA)" To: mapreduce-issues@hadoop.apache.org Message-ID: <664791168.62862.1307024507620.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <2078461094.55341.1306820447382.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (MAPREDUCE-2548) Log improvements in DBOutputFormat.java and CounterGroup.java MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/MAPREDUCE-2548?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Devaraj K updated MAPREDUCE-2548: --------------------------------- Fix Version/s: 0.23.0 Status: Patch Available (was: Open) > Log improvements in DBOutputFormat.java and CounterGroup.java > ------------------------------------------------------------- > > Key: MAPREDUCE-2548 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-2548 > Project: Hadoop Map/Reduce > Issue Type: Improvement > Reporter: Devaraj K > Assignee: Devaraj K > Fix For: 0.23.0 > > Attachments: MAPREDUCE-2548.patch > > > 1. Instead of the printing the stack trace on the console, It can be logged. > {code:title=DBOutputFormat.java|borderStyle=solid} > > public void write(K key, V value) throws IOException { > try { > key.write(statement); > statement.addBatch(); > } catch (SQLException e) { > e.printStackTrace(); > } > } > {code} > 2. Missing resource information can be logged. > {code:title=CounterGroup .java|borderStyle=solid} > protected CounterGroup(String name) { > this.name = name; > try { > bundle = getResourceBundle(name); > } > catch (MissingResourceException neverMind) { > } > displayName = localize("CounterGroupName", name); > } > private String localize(String key, String defaultValue) { > String result = defaultValue; > if (bundle != null) { > try { > result = bundle.getString(key); > } > catch (MissingResourceException mre) { > } > } > return result; > } > {code} > -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira