hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Colin Patrick McCabe (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-10334) make user home directory customizable
Date Thu, 28 Aug 2014 02:43:58 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-10334?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14113247#comment-14113247

Colin Patrick McCabe commented on HADOOP-10334:

I don't think this should be a hadoop-common thing.  I think it should be an hdfs-specific
thing, with an hdfs-specific configuration key.

Different filesystems have different ways of setting their home directory.  For example, {{FTPFileSystem}}
actually uses the home directory that the FTP server uses (it will connect to the FTP server
to find that information).  {{HarFileSystem}} uses the URI of the har file itself as its home
directory.  It doesn't make sense for these filesystems to use the same way of determining
their home directory that HDFS does.  This is especially true for local filesystems-- HDFS
normally uses /user/foo, whereas local filesystems on UNIX use /home/foo.

Since all these filesystems have a different way of setting their home directory already,
there is no point in adding a configuration key in common or new methods to the FileSystem
base class.  Instead, let's just add a configuration key to DFSConfigKeys that solves this
specific problem.

> make user home directory customizable
> -------------------------------------
>                 Key: HADOOP-10334
>                 URL: https://issues.apache.org/jira/browse/HADOOP-10334
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: fs
>    Affects Versions: 2.2.0
>            Reporter: Kevin Odell
>            Assignee: Yongjun Zhang
>            Priority: Minor
>         Attachments: HADOOP-10334.001.patch, HADOOP-10334.002.patch, HADOOP-10334.002.patch
> The path is currently hardcoded:
> public Path getHomeDirectory() {
>     return makeQualified(new Path("/user/" + dfs.ugi.getShortUserName()));
>   }
> It would be nice to have that as a customizable value.  
> Thank you

This message was sent by Atlassian JIRA

View raw message