Skip to content

Commit 6b840f0

Browse files
committed
Undo the fix for SPARK-1758 (the problem is fixed)
1 parent 5108700 commit 6b840f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/test/java/org/apache/spark/JavaAPISuite.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -639,8 +639,8 @@ public void wholeTextFiles() throws IOException {
639639
ds.close();
640640

641641
HashMap<String, String> container = new HashMap<String, String>();
642-
container.put("file:" + tempDirName+"/part-00000", new Text(content1).toString());
643-
container.put("file:" + tempDirName+"/part-00001", new Text(content2).toString());
642+
container.put(tempDirName+"/part-00000", new Text(content1).toString());
643+
container.put(tempDirName+"/part-00001", new Text(content2).toString());
644644

645645
JavaPairRDD<String, String> readRDD = sc.wholeTextFiles(tempDirName, 3);
646646
List<Tuple2<String, String>> result = readRDD.collect();

0 commit comments

Comments
 (0)