You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Steve Loughran (Jira)" <ji...@apache.org> on 2022/10/04 13:37:00 UTC

[jira] [Commented] (HDFS-16791) New API for enclosing root path for a file

    [ https://issues.apache.org/jira/browse/HDFS-16791?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17612620#comment-17612620 ] 

Steve Loughran commented on HDFS-16791:
---------------------------------------

usual expectations of anything going near the filesystem apis, as covered in FileSystem.java javadocs. I'd prefer a new interface which AbstractFileSystem and FileSystem can both implement; makes it easier to write contract tests for both. 

> New API for enclosing root path for a file
> ------------------------------------------
>
>                 Key: HDFS-16791
>                 URL: https://issues.apache.org/jira/browse/HDFS-16791
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>            Reporter: Tom McCormick
>            Priority: Major
>
> At LinkedIn we run many HDFS volumes that are federated by either ViewFilesystem or Router Based Federation. As our number of hdfs volumes grows, we have a growing need to migrate data seemlessly across volumes.
> Many frameworks have a notion of staging or temp directories, but those directories often live in random locations. We want an API getEnclosingRoot, which provides the root path a file or dataset. 
> In ViewFilesystem / Router Based Federation, the enclosingRoot will be the mount point.
> We will also take into account other restrictions for renames like encryptions zones.
> If there are several paths (a mount point and an encryption zone), we will return the longer path



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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