Details
Description
FileSystem's getFileCacheHints should be replaced with something more useful. I'd suggest replacing getFileCacheHints with a new method:
BlockLocation[] getFileLocations(Path file, long offset, long range) throws IOException;
and adding
class BlockLocation implements Writable { String[] getHosts(); long getOffset(); long getLength(); }
Attachments
Attachments
Issue Links
- relates to
-
HADOOP-3265 Remove deprecated API getFileCacheHints
- Closed
-
HADOOP-1296 Improve interface to FileSystem.getFileCacheHints
- Closed