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

Plamen Jeliazkov commented on HDFS-4559:
----------------------------------------

I can understand the case for DFS. I have noticed there is a resolvePath() 
method in FileSystem though. I am assuming there was an attempt to introduce 
symlinks at the DFS layer. I can close that JIRA myself shortly.

I find it odd however that WebHDFS can make symlinks but not resolve them. 
Since NameNodeWebHdfsMethods has access to the NameNodeRpcServer, I believe it 
should be possible for WebHDFS to resolve those created symlinks using some 
implementation. Does FileContext never make use of the NameNodeRpcServer in 
order to resolve symlinks?
                
> WebHDFS does not allow resolution of Symlinks
> ---------------------------------------------
>
>                 Key: HDFS-4559
>                 URL: https://issues.apache.org/jira/browse/HDFS-4559
>             Project: Hadoop HDFS
>          Issue Type: Bug
>    Affects Versions: 2.0.3-alpha
>            Reporter: Plamen Jeliazkov
>            Assignee: Plamen Jeliazkov
>             Fix For: 3.0.0, 2.0.4-beta
>
>
> WebHDFS allows you to create symlinks via the CREATESYMLINK operation, but 
> the GETFILEINFO operation specifically calls the getFileInfo() method of the 
> NameNodeRpcServer which does not resolve symlinks.
> I propose adding a parameter to GETFILEINFO such that if true will call 
> getFileLinkInfo() rather than getFileInfo() which will resolve any symlinks.

--
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