[
https://issues.apache.org/jira/browse/HADOOP-6223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12751131#action_12751131
]
Sanjay Radia commented on HADOOP-6223:
--------------------------------------
Turns out most of them wrt to the semantics: all methods that have a path name
are affected since the path name
in the new FS is a fully qualified name and will throw an exception if it is
not. Also those with the permissions are
affected - the new FS takes in absolute permissions (ie no need to apply the
mask).
In both cases the FileContext class will convert relative names into fully
qualified and apply the mask to the perm before calling the
new FS.
I am still debating where the path name passed should be fully qualified URI
(but checked to be in the same FS) or FS-root relative
path in which case it does not need to check - from a spec point of view the
latter is cleaner. (Do we have type for a root relative path?)
> New improved FileSystem interface for those implementing new files systems.
> ---------------------------------------------------------------------------
>
> Key: HADOOP-6223
> URL: https://issues.apache.org/jira/browse/HADOOP-6223
> Project: Hadoop Common
> Issue Type: Sub-task
> Reporter: Sanjay Radia
> Assignee: Sanjay Radia
>
> The FileContext API (HADOOP-4952) provides an improved interface for the
> application writer.
> This lets us simplify the FileSystem API since it will no longer need to deal
> with notions of default filesystem [ / ], wd, and config
> defaults for blocksize, replication factor etc. Further it will not need the
> many overloaded methods for create() and open() since
> the FileContext API provides that convenience.
> The FileSystem API can be simplified and can now be restricted to those
> implementing new file systems.
> This jira proposes that we create new file system API, and deprecate
> FileSystem API after a few releases.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.