hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sanjay Radia (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HDFS-593) Support for getting user home dir from server side
Date Thu, 03 Sep 2009 23:59:57 GMT

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

Sanjay Radia commented on HDFS-593:

It is clearly simpler to do it the way you are saying.
But here are the reasons to do it on the SS.

# We need to support SS in a federated environment.
# we are trying get the client side config variables to zero for fs. The FileContext Jira
has done that for the other variables.
# the local file system impl does not use client side config variable, it uses the home directory
of the local file system. Indeed
  for the local file system the wd is initialized to the wd of the process on the local filesystem
(NOT to the homedirectory like hdfs).
 I consider this behavior on the local FS to be  equivalent to SS; someone went to a fair
amount of trouble to make this work right for the local filesystem.

Now in an enterprise it is highly unlikely that different clusters will have different default.
However one may give different users
different home partitions once we get volumes and symlinks (not likely for a very long time
even at Yahoo).
A cross univ federated hadoop environment may have different defaults for different organization.

I am very very tempted to do the short cut and say we will fix this later when it become an
issue in a federated env.
 The reason we should not do this is because of zero client side config. 
If we have zero client side config then all a user has to do for fs config is to choose  his
default file system and his umask. It would be shame to say we have one client side config
variables - the home
directory.  If you want to do the short cut simple burn in the default into the code so there
are no config variables to set.

> Support for getting user home dir from server side
> --------------------------------------------------
>                 Key: HDFS-593
>                 URL: https://issues.apache.org/jira/browse/HDFS-593
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: hdfs client, name-node
>            Reporter: Kan Zhang
>            Assignee: Kan Zhang
> This is a sub-task of HADOOP-4952. Currently the Path of user home dir is constructed
on the client side using convention "/user/$USER". HADOOP-4952 calls for it to be retrieved
from server side.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message