HDFS-9196. Fix TestWebHdfsContentLength. Contributed by Masatake Iwasaki.

(cherry picked from commit 239d119c67)
This commit is contained in:
Jing Zhao 2015-10-06 23:54:49 -07:00
parent 99126714a3
commit a4b8dc48f1
2 changed files with 3 additions and 1 deletions

View File

@ -211,7 +211,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,

View File

@ -1156,6 +1156,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