HADOOP-6758. MapFile.fix does not allow index interval definition. Contributed by Gianmarco De Francisci Morales.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1031743 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
cf65399043
commit
3460a5e345
|
@ -303,6 +303,9 @@ Trunk (unreleased changes)
|
|||
HADOOP-6975. Integer overflow in S3InputStream for blocks > 2GB.
|
||||
(Patrick Kling via tomwhite)
|
||||
|
||||
HADOOP-6758. MapFile.fix does not allow index interval definition.
|
||||
(Gianmarco De Francisci Morales via tomwhite)
|
||||
|
||||
Release 0.21.1 - Unreleased
|
||||
|
||||
IMPROVEMENTS
|
||||
|
|
|
@ -771,7 +771,7 @@ public class MapFile {
|
|||
String dr = (dryrun ? "[DRY RUN ] " : "");
|
||||
Path data = new Path(dir, DATA_FILE_NAME);
|
||||
Path index = new Path(dir, INDEX_FILE_NAME);
|
||||
int indexInterval = 128;
|
||||
int indexInterval = conf.getInt(Writer.INDEX_INTERVAL, 128);
|
||||
if (!fs.exists(data)) {
|
||||
// there's nothing we can do to fix this!
|
||||
throw new Exception(dr + "Missing data file in " + dir + ", impossible to fix this.");
|
||||
|
|
Loading…
Reference in New Issue