hadoop-mapreduce-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MAPREDUCE-3990) MRBench allows Long-sized input-lines value but parses CLI argument as an Integer
Date Mon, 28 May 2012 13:36:24 GMT

    [ https://issues.apache.org/jira/browse/MAPREDUCE-3990?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13284401#comment-13284401
] 

Hudson commented on MAPREDUCE-3990:
-----------------------------------

Integrated in Hadoop-Hdfs-trunk-Commit #2364 (See [https://builds.apache.org/job/Hadoop-Hdfs-trunk-Commit/2364/])
    MAPREDUCE-3990. MRBench allows Long-sized input-lines value but parses CLI argument as
an Integer. (harsh) (Revision 1343247)

     Result = SUCCESS
harsh : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1343247
Files : 
* /hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt
* /hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/mapred/MRBench.java

                
> MRBench allows Long-sized input-lines value but parses CLI argument as an Integer
> ---------------------------------------------------------------------------------
>
>                 Key: MAPREDUCE-3990
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-3990
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: benchmarks
>    Affects Versions: 2.0.0-alpha
>            Reporter: Harsh J
>            Assignee: Harsh J
>            Priority: Trivial
>              Labels: mrbench
>             Fix For: 3.0.0
>
>         Attachments: MAPREDUCE-3990.patch
>
>
> MRBench has the following method:
> {code}
> public void generateTextFile(FileSystem fs, Path inputFile, long numLines, Order sortOrder)
{ ... }
> {code}
> The method is already set to accept a long datatype for numLines, for generating very
large amount of data.
> However, in {{MRBench#run(...)}}, the inputLines CLI parameter is parsed via an Integer.parseInt,
causing numbers passed > Integer.MAX_VALUE to throw NumberFormatExceptions as a result.
> The parsing should be Long.parseLong and the inputLines datatype should be switched to
the same type as passed to the method (long).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message