[ 
https://issues.apache.org/jira/browse/HDFS-3620?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13562957#comment-13562957
 ] 

Alejandro Abdelnur commented on HDFS-3620:
------------------------------------------

If the target FS has home dirs in other location than '/user/<UID>' then 
WebHdfsFileSystem will return the incorrect value.

To avoid perf issues, this call should be done ONCE per WebHdfsFilesystem and 
cached in the instance.
                
> WebHdfsFileSystem getHomeDirectory() should not resolve locally
> ---------------------------------------------------------------
>
>                 Key: HDFS-3620
>                 URL: https://issues.apache.org/jira/browse/HDFS-3620
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: webhdfs
>    Affects Versions: 1.0.3, 2.0.0-alpha
>            Reporter: Alejandro Abdelnur
>            Priority: Critical
>
> WebHdfsFileSystem getHomeDirectory() method it is hardcoded to return 
> '/user/' + UGI#shortname. Instead, it should make a HTTP REST call with 
> op=GETHOMEDIRECTORY.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to