Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-14150

Implement getHomeDirectory() method in NativeAzureFileSystem

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.8.0
    • Fix Version/s: 2.9.0, 3.0.0-alpha4
    • Component/s: fs/azure
    • Labels:
      None

      Description

      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,

      public Path getHomeDirectory() {
          return this.makeQualified(
              new Path(USER_HOME_PREFIX + "/" + System.getProperty("user.name")));
        }
      

      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.

        Attachments

          Activity

            People

            • Assignee:
              snayak Santhosh G Nayak
              Reporter:
              nmaheshwari Namit Maheshwari
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: