Details
-
Improvement
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
2.8.0
-
None
-
Reviewed
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.