瀏覽代碼

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

(cherry picked from commit 37577852ba54ba506b0b6c4db5e95d176f5e9b63)
(cherry picked from commit 7f6737951a124480af2f3fff9358865fff3ed091)
(cherry picked from commit 403934c0115c12e895509ce5321046d3af731377)
Andrew Wang 9 年之前
父節點
當前提交
980098c45e

+ 3 - 0
hadoop-mapreduce-project/CHANGES.txt

@@ -39,6 +39,9 @@ Release 2.6.5 - UNRELEASED
     MAPREDUCE-5817. Mappers get rescheduled on node transition even after all
     reducers are completed. (Sangjin Lee via kasha)
 
+    MAPREDUCE-6637. Testcase Failure : TestFileInputFormat.testSplitLocationInfo.
+    (Brahma Reddy Battula via wang)
+
 Release 2.6.4 - 2016-02-11
 
   INCOMPATIBLE CHANGES

+ 1 - 1
hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/test/java/org/apache/hadoop/mapred/TestFileInputFormat.java

@@ -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" },

+ 1 - 1
hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/test/java/org/apache/hadoop/mapreduce/lib/input/TestFileInputFormat.java

@@ -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" },