diff --git a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/web/WebHdfsFileSystem.java b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/web/WebHdfsFileSystem.java index 16d41a7bd7..8bdf3ba31f 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/web/WebHdfsFileSystem.java +++ b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/web/WebHdfsFileSystem.java @@ -212,7 +212,7 @@ public class WebHdfsFileSystem extends FileSystem failoverSleepMaxMillis); } - this.workingDir = makeQualified(getHomeDirectory()); + this.workingDir = makeQualified(new Path(getHomeDirectoryString(ugi))); this.canRefreshDelegationToken = UserGroupInformation.isSecurityEnabled(); this.disallowFallbackToInsecureCluster = !conf.getBoolean( CommonConfigurationKeys.IPC_CLIENT_FALLBACK_TO_SIMPLE_AUTH_ALLOWED_KEY, diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index 93d3ee7b5f..754ae7aef9 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -1967,6 +1967,8 @@ Release 2.8.0 - UNRELEASED HDFS-7899. Improve EOF error message (Jagadesh Kiran N via vinayakumarb) + HDFS-9196. Fix TestWebHdfsContentLength. (Masatake Iwasaki via jing9) + Release 2.7.2 - UNRELEASED INCOMPATIBLE CHANGES