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

Stephen Chu commented on HDFS-3620:
-----------------------------------

This will require making changes to TestWebHdfsUrl, which currently doesn't 
bring up the MiniDFSCluster, so WebHdfsFileSystem initialization will fail 
because it'll try to make the HTTP REST call when the WebHDFS service isn't up.

This might be tricky because the test enables security, and we don't have a 
good way of running unit tests against a secure MiniDFSCluster yet without 
extra work to get an external KDC up or use the apacheDS from HADOOP-8078.
                
> 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