MAPREDUCE-6637. Testcase Failure : TestFileInputFormat.testSplitLocationInfo. Contributed by Brahma Reddy Battula.

(cherry picked from commit 37577852ba)
This commit is contained in:
Andrew Wang 2016-02-19 16:33:17 -08:00
parent e38c2ef6c5
commit 7f6737951a
3 changed files with 5 additions and 2 deletions

View File

@ -443,6 +443,9 @@ Release 2.7.3 - UNRELEASED
IMPROVEMENTS
MAPREDUCE-6637. Testcase Failure : TestFileInputFormat.testSplitLocationInfo.
(Brahma Reddy Battula via wang)
OPTIMIZATIONS
BUG FIXES

View File

@ -243,7 +243,7 @@ public class TestFileInputFormat {
}
@Override
public BlockLocation[] getFileBlockLocations(Path p, long start, long len)
public BlockLocation[] getFileBlockLocations(FileStatus file, long start, long len)
throws IOException {
return new BlockLocation[] {
new BlockLocation(new String[] { "localhost:50010", "otherhost:50010" },

View File

@ -422,7 +422,7 @@ public class TestFileInputFormat {
}
@Override
public BlockLocation[] getFileBlockLocations(Path p, long start, long len)
public BlockLocation[] getFileBlockLocations(FileStatus file, long start, long len)
throws IOException {
return new BlockLocation[] {
new BlockLocation(new String[] { "localhost:50010", "otherhost:50010" },