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 6660B10014 for ; Sat, 21 Mar 2015 06:18:43 +0000 (UTC) Received: (qmail 86767 invoked by uid 500); 21 Mar 2015 06:18:38 -0000 Delivered-To: apmail-hadoop-mapreduce-issues-archive@hadoop.apache.org Received: (qmail 86692 invoked by uid 500); 21 Mar 2015 06:18:38 -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 86672 invoked by uid 99); 21 Mar 2015 06:18:38 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 21 Mar 2015 06:18:38 +0000 Date: Sat, 21 Mar 2015 06:18:38 +0000 (UTC) From: "zhihai xu (JIRA)" To: mapreduce-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (MAPREDUCE-6286) A typo in HistoryViewer makes some code useless. 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-6286?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] zhihai xu updated MAPREDUCE-6286: --------------------------------- Description: A typo in HistoryViewer makes some code useless. The typo is Limits.reset(conf); We should use jobConf instead of conf. With the typo, the following code becomes useless: {code} final Path jobConfPath = new Path(jobFile.getParent(), jobDetails[0] + "_" + jobDetails[1] + "_" + jobDetails[2] + "_conf.xml"); final Configuration jobConf = new Configuration(conf); jobConf.addResource(fs.open(jobConfPath), jobConfPath.toString()); {code} The code wants to load the configuration from the Job configuration file and reset the Limits based on the new configuration loaded from the Job configuration file. But with the typo, the Limits is reset with the old configuration. So this typo is apparent. was: A typo in HistoryViewer makes some code useless. The typo is Limits.reset(conf); We should use jobConf instead of conf. With the typo, the following code becomes useless: {code} final Path jobConfPath = new Path(jobFile.getParent(), jobDetails[0] + "_" + jobDetails[1] + "_" + jobDetails[2] + "_conf.xml"); final Configuration jobConf = new Configuration(conf); jobConf.addResource(fs.open(jobConfPath), jobConfPath.toString()); {code} The code wants to load the configuration from the Job configuration file and reset the Limits based on the new configuration loaded from the Job configuration file. So this typo is apparent. > A typo in HistoryViewer makes some code useless. > ------------------------------------------------ > > Key: MAPREDUCE-6286 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-6286 > Project: Hadoop Map/Reduce > Issue Type: Bug > Components: client > Reporter: zhihai xu > Assignee: zhihai xu > Attachments: MAPREDUCE-6286.000.patch > > > A typo in HistoryViewer makes some code useless. > The typo is > Limits.reset(conf); > We should use jobConf instead of conf. > With the typo, the following code becomes useless: > {code} > final Path jobConfPath = new Path(jobFile.getParent(), jobDetails[0] > + "_" + jobDetails[1] + "_" + jobDetails[2] + "_conf.xml"); > final Configuration jobConf = new Configuration(conf); > jobConf.addResource(fs.open(jobConfPath), jobConfPath.toString()); > {code} > The code wants to load the configuration from the Job configuration file and reset the Limits based on the new configuration loaded from the Job configuration file. But with the typo, the Limits is reset with the old configuration. > So this typo is apparent. -- This message was sent by Atlassian JIRA (v6.3.4#6332)