hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HADOOP-14535) Support for random access and seek of block blobs
Date Sat, 17 Jun 2017 00:10:00 GMT
Thomas created HADOOP-14535:

             Summary: Support for random access and seek of block blobs
                 Key: HADOOP-14535
                 URL: https://issues.apache.org/jira/browse/HADOOP-14535
             Project: Hadoop Common
          Issue Type: Improvement
          Components: fs/azure
            Reporter: Thomas
             Fix For: 2.9.0, 3.0.0-alpha4

This change adds a seek-able stream for reading block blobs to the wasb:// file system.

If seek() is not used or if only forward seek() is used, the behavior of read() is unchanged.
That is, the stream is optimized for sequential reads by reading chunks (over the network)
the size specified by "fs.azure.read.request.size" (default is 4 megabytes).

If reverse seek() is used, the behavior of read() changes in favor of reading the actual number
of bytes requested in the call to read(), with some contraints.  If the size requested is
than 16 kilobytes and cannot be satisfied by the internal buffer, the network read will be
kilobytes.  If the size requested is greater than 4 megabytes, it will be satisifed by sequential
4 megabyte reads over the network.

This change improves the performance of FSInputStream.seek() by not closing and re-opening
stream, which for block blobs also involves a network operation to read the blob metadata.
NativeAzureFsInputStream.seek() checks if the stream is seek-able and moves the read position.


This message was sent by Atlassian JIRA

To unsubscribe, e-mail: common-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-dev-help@hadoop.apache.org

View raw message