Details
-
Bug
-
Status: Resolved
-
Trivial
-
Resolution: Fixed
-
2.0.0-alpha
Description
MRBench has the following method:
public void generateTextFile(FileSystem fs, Path inputFile, long numLines, Order sortOrder) { ... }
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).