[
https://issues.apache.org/jira/browse/HADOOP-5688?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12699474#action_12699474
]
Tsz Wo (Nicholas), SZE edited comment on HADOOP-5688 at 4/15/09 8:27 PM:
-------------------------------------------------------------------------
The problem is that HftpFileSystem does not construct the url correctly if the
path contents scheme and authority information. For example
{code}
Path p = new Path("hftp://localhost:2750/foo");
FileSystem hftpfs = p.getFileSystem(conf);
FileChecksum cs = hftpfs.getFileChecksum(p);
/*
The url constructed above will be
http://localhost:2750/fileChecksumhftp://localhost:2750/filechecksum/foo?ugi=...
However, the correct url is
http://localhost:2750/fileChecksum/foo?ugi=...
*/
{code}
was (Author: szetszwo):
The problem is that HftpFileSystem does not construct the url correctly if
the path contents scheme and authority information. For example
{code}
Path p = new Path("hftp://localhost:2750/filechecksum/foo");
FileSystem hftpfs = p.getFileSystem(conf);
FileChecksum cs = hftpfs.getFileChecksum(p);
/*
The url constructed above will be
http://localhost:2750/fileChecksumhftp://localhost:2750/filechecksum/foo?ugi=...
The correct url is
http://localhost:2750/fileChecksum/foo?ugi=...
*/
{code}
> HftpFileSystem.getChecksum(..) does not work for the paths with scheme and
> authority
> ------------------------------------------------------------------------------------
>
> Key: HADOOP-5688
> URL: https://issues.apache.org/jira/browse/HADOOP-5688
> Project: Hadoop Core
> Issue Type: Bug
> Components: dfs
> Reporter: Tsz Wo (Nicholas), SZE
> Assignee: Tsz Wo (Nicholas), SZE
> Attachments: 5688_20090415.patch
>
>
> If a path with scheme and authority information (e.g.
> hftp://hostname:50070/foo.txt) is passed to HftpFileSystem.getChecksum(..),
> it won't return the correct file checksum.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.