Details
Description
FileSystem#listLocatedStatus lists the files in a directory and then calls getFileBlockLocations(stat.getPath(), ...) for each instead of getFileBlockLocations(stat, ...). That function with the path arg just calls getFileStatus to get another file status from the path and calls the file status version, so this ends up calling getFileStatus unnecessarily.
This is particularly bad for S3, where getFileStatus is expensive. Avoiding the extra call improved input split calculation time for a data set in S3 by ~20x: from 10 minutes to 25 seconds.
Attachments
Attachments
Issue Links
- breaks
-
MAPREDUCE-6637 Testcase Failure : TestFileInputFormat.testSplitLocationInfo
- Closed
- is depended upon by
-
HADOOP-11694 Über-jira: S3a phase II: robustness, scale and performance
- Resolved
- relates to
-
SPARK-9926 Parallelize file listing for partitioned Hive table
- Resolved
- supercedes
-
SPARK-10340 Use S3 bulk listing for S3-backed Hive tables
- Resolved