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 "Santhosh G Nayak (JIRA)" <ji...@apache.org> on 2017/03/07 04:42:32 UTC

[jira] [Created] (HADOOP-14150) Implement getHomeDirectory() method in NativeAzureFileSystem

Santhosh G Nayak created HADOOP-14150:
-----------------------------------------

             Summary: Implement getHomeDirectory() method in NativeAzureFileSystem
                 Key: HADOOP-14150
                 URL: https://issues.apache.org/jira/browse/HADOOP-14150
             Project: Hadoop Common
          Issue Type: Improvement
          Components: fs/azure
    Affects Versions: 2.8.0
            Reporter: Santhosh G Nayak
            Assignee: Santhosh G Nayak


{{org.apache.hadoop.fs.azure.NativeAzureFileSystem}} does not override {{FileSystem#getHomeDirectory()}} method.
So, whenever {{NativeAzureFileSystem#getHomeDirectory()}} gets called {{getHomeDirectory()}} from {{FileSystem}} will be invoked, which has code like below,
{code}
public Path getHomeDirectory() {
    return this.makeQualified(
        new Path(USER_HOME_PREFIX + "/" + System.getProperty("user.name")));
  }
{code}
In secure environment, it returns home directory of {{System.getProperty("user.name")}} instead of Kerberos principal/UGI.
So, the proposal is to override the {{getHomeDirectory()}} method in {{NativeAzureFileSystem}} and have it return the home directory for the Kerberos principal/ugi.




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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