-
Type:
Bug
-
Status: Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.6.0
-
Fix Version/s: 2.8.0, 3.0.0-alpha1
-
Component/s: webhdfs
-
Labels:None
-
Hadoop Flags:Reviewed
Per the spec, WebHDFS provides a REST endpoint for getting the user's home directory:
Submit a HTTP GET request. curl -i "http://<HOST>:<PORT>/webhdfs/v1/?op=GETHOMEDIRECTORY"
However, WebHDFSFileSystem.java does not use this, instead building the home directory locally:
/** @return the home directory. */ public static String getHomeDirectoryString(final UserGroupInformation ugi) { return "/user/" + ugi.getShortUserName(); } @Override public Path getHomeDirectory() { return makeQualified(new Path(getHomeDirectoryString(ugi))); }
The WebHDFSFileSystem client should call to the REST service to determine the home directory.
- breaks
-
HDFS-12748 NameNode memory leak when accessing webhdfs GETHOMEDIRECTORY
-
- Resolved
-