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 11E22E9C2 for ; Fri, 1 Mar 2013 11:03:14 +0000 (UTC) Received: (qmail 57672 invoked by uid 500); 1 Mar 2013 11:03:13 -0000 Delivered-To: apmail-hadoop-mapreduce-issues-archive@hadoop.apache.org Received: (qmail 57506 invoked by uid 500); 1 Mar 2013 11:03:13 -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 57493 invoked by uid 99); 1 Mar 2013 11:03:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Mar 2013 11:03:13 +0000 Date: Fri, 1 Mar 2013 11:03:13 +0000 (UTC) From: "shobin joseph (JIRA)" To: mapreduce-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MAPREDUCE-5039) Configuration getInt is called From vaidya, but it actually need a float calculation(The values always be a Floating Poin Number) 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-5039?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13590423#comment-13590423 ] shobin joseph commented on MAPREDUCE-5039: ------------------------------------------ The bug is raised from the direction of [~qwertymaniac] related to https://issues.apache.org/jira/browse/HADOOP-2081 > Configuration getInt is called From vaidya, but it actually need a float calculation(The values always be a Floating Poin Number) > --------------------------------------------------------------------------------------------------------------------------------- > > Key: MAPREDUCE-5039 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-5039 > Project: Hadoop Map/Reduce > Issue Type: Bug > Components: contrib/vaidya > Affects Versions: 0.23.1 > Environment: hadoop-2.0.0-mr1-cdh4.1.2, Ubuntu 10.04 > Reporter: shobin joseph > Original Estimate: 60h > Remaining Estimate: 60h > > when we run the vaidya scrpit in hadoop-2.0.0-mr1-cdh4.1.2. > Exception:java.lang.NumberFormatException: For input string: "0.05"java.lang.NumberFormatException: For input string: "0.05" > at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) > at java.lang.Integer.parseInt(Integer.java:458) > at java.lang.Integer.parseInt(Integer.java:499) > at org.apache.hadoop.conf.Configuration.getInt(Configuration.java:887) > at org.apache.hadoop.vaidya.postexdiagnosis.tests.MapSideDiskSpill.getPrescription(MapSideDiskSpill.java:99) > at org.apache.hadoop.vaidya.DiagnosticTest.getReportElement(DiagnosticTest.java:283) > at org.apache.hadoop.vaidya.postexdiagnosis.PostExPerformanceDiagnoser.main(PostExPerformanceDiagnoser.java:254) > In the job conf file > the properties are like > mapred.reduce.slowstart.completed.maps0.05mapred-default.xml/tmp/hadoop-527022/mapred/local/jobTracker/job_201302121643_0003.xml > io.sort.record.percent0.05mapred-default.xml/tmp/hadoop-527022/mapred/local/jobTracker/job_201302121643_0003.xml > io.sort.spill.percent0.80mapred-default.xml/tmp/hadoop-527022/mapred/local/jobTracker/job_201302121643_0003.xml > all the above lines throw the exception. > The important thing is default values for the above properties are 0.05 and 0.8 > But the getInt() Function takes only integer values, if not it takes only the integer part. > In Hadoop io.sort.spill.percent,io.sort.record.percent,mapred.reduce.slowstart.completed.maps are expressed as Floating Point Numbers. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira