Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.7.1
-
None
Description
- Currently, "read(long position, byte[] buffer, int offset, int length)" is not implemented in S3AInputStream (unlike DFSInputStream). So, "readFully(long position, byte[] buffer, int offset, int length)" in S3AInputStream goes through the default implementation of seek(), read(), seek() in FSInputStream.
- However, seek() in S3AInputStream involves re-opening of connection to S3 everytime (https://github.com/apache/hadoop/blob/trunk/hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/S3AInputStream.java#L115).
- It would be good to consider having a lazy seek implementation to reduce connection overheads to S3. (e.g Presto implements lazy seek. https://github.com/facebook/presto/blob/master/presto-hive/src/main/java/com/facebook/presto/hive/PrestoS3FileSystem.java#L623)
Attachments
Attachments
Issue Links
- contains
-
HADOOP-11874 s3a can throw spurious IOEs on close()
- Resolved
-
HADOOP-12976 s3a toString to be meaningful in logs
- Resolved
- depends upon
-
HADOOP-12994 Specify PositionedReadable, add contract tests, fix problems
- Resolved
- is related to
-
HADOOP-16241 S3AInputStream PositionReadable should perform ranged read on dedicated stream
- Open
- is required by
-
HADOOP-12844 Recover when S3A fails on IOException in read()
- Resolved
- relates to
-
HIVE-11945 ORC with non-local reads may not be reusing connection to DN
- Closed