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

Implement getHomeDirectory() method in NativeAzureFileSystem

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.8.0
    • 2.9.0, 3.0.0-alpha4
    • fs/azure
    • 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

        1. HADOOP-14150.1.patch
          2 kB
          Santhosh G Nayak

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: