You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Doug Cutting (JIRA)" <ji...@apache.org> on 2008/01/10 18:31:34 UTC
[jira] Commented: (HADOOP-2567) add FileSystem#getHomeDirectory()
method
[ https://issues.apache.org/jira/browse/HADOOP-2567?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12557714#action_12557714 ]
Doug Cutting commented on HADOOP-2567:
--------------------------------------
> Would it be make sense to use UserGroupInformation to determine the home dir?
Yes, someday. Long-term, username's should be filesystem-specific. But we don't yet have an API to get the username for a particular filesystem. Once that's added, it should be returned as a UserGroupInformation and used to determine the home directory, but until then, I think this is not worth adding.
Note that this patch does not change how the home directory in HDFS is computed, it only adds a method to expose the home directory already implicit in HDFS. Changing how we compute it should perhaps be the subject of another issue.
> add FileSystem#getHomeDirectory() method
> ----------------------------------------
>
> Key: HADOOP-2567
> URL: https://issues.apache.org/jira/browse/HADOOP-2567
> Project: Hadoop
> Issue Type: New Feature
> Components: fs
> Reporter: Doug Cutting
> Assignee: Doug Cutting
> Fix For: 0.16.0
>
> Attachments: 2567-3.patch, HADOOP-2567-1.patch, HADOOP-2567-2.patch, HADOOP-2567.patch
>
>
> The FileSystem API would benefit from a getHomeDirectory() method.
> The default implementation would return "/user/$USER/".
> RawLocalFileSystem would return System.getProperty("user.home").
> HADOOP-2514 can use this to implement per-user trash.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.