Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.6.0
-
None
-
Reviewed
Description
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.
Attachments
Attachments
Issue Links
- breaks
-
HDFS-12748 NameNode memory leak when accessing webhdfs GETHOMEDIRECTORY
- Resolved