[
https://issues.apache.org/jira/browse/HADOOP-9565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13703597#comment-13703597
]
Steve Loughran commented on HADOOP-9565:
----------------------------------------
This is what I'm thinking
# Blobstore interface for {{FileSystem}} and {{AbstractFileSystem}}
# blobstores to provide an instance specific enum set of consistency guarantees
# a local/remote flag, so that those FSs that know when they are in-cluster
(swift explicitly, s3 once it does an nslookup & sees the bucket is on a 10.
address).
# an optional (how to check?) copy() method that triggers a remote copy see
[http://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectCOPY.html] for an
example -much lower cost than a local copy.
# a {{put(Path, InputStream, length)}} that can be used to do a direct PUT
without having to buffer it through a local file. This would be more efficient
and should offer a better way to do these uploads than hiding them in a close
operation that may be having its exceptions swallowed.
> Add a Blobstore interface to add to blobstore FileSystems
> ---------------------------------------------------------
>
> Key: HADOOP-9565
> URL: https://issues.apache.org/jira/browse/HADOOP-9565
> Project: Hadoop Common
> Issue Type: Sub-task
> Components: fs
> Affects Versions: 2.0.4-alpha
> Reporter: Steve Loughran
> Priority: Minor
>
> We can make the fact that some {{FileSystem}} implementations are really
> blobstores, with different atomicity and consistency guarantees, by adding a
> {{Blobstore}} interface to add to them.
> This could also be a place to add a {{Copy(Path,Path)}} method, assuming that
> all blobstores implement at server-side copy operation as a substitute for
> rename.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira