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

Tsz Wo (Nicholas), SZE commented on HDFS-1383:
----------------------------------------------

>   1.  HftpFileSystem#open() - should you just use, s!= null. ...

It sounds good.

>   2. Can you please attach an example of printed exception?

The existing problem is shown below.  I will post the fixed output later.
{noformat}
[r...@host yahoo-hadoop-0.20.1xx]# ./bin/hadoop fs -put README.txt foo/s.txt
[r...@host yahoo-hadoop-0.20.1xx]# ./bin/hadoop fs -chmod 000 foo           
[r...@host yahoo-hadoop-0.20.1xx]# ./bin/hadoop fs -cat 
hftp://host.xx.yy:50070/user/root/foo/s.txt .
[Fatal Error] :1:171: XML document structures must start and end within the 
same entity.
cat: invalid xml directory content
[r...@host yahoo-hadoop-0.20.1xx]# ./bin/hadoop fs -ls 
hftp://host.xx.yy:50070/user/root/foo/s.txt
[Fatal Error] :1:171: XML document structures must start and end within the 
same entity.
ls: invalid xml directory content
{noformat}

> Better error messages on hftp 
> ------------------------------
>
>                 Key: HDFS-1383
>                 URL: https://issues.apache.org/jira/browse/HDFS-1383
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>            Reporter: Tsz Wo (Nicholas), SZE
>            Assignee: Tsz Wo (Nicholas), SZE
>         Attachments: h1383_20100913_y20.patch
>
>
> If the file is not accessible, HftpFileSystem returns only a HTTP response 
> code.
> {noformat}
> 2010-08-27 20:57:48,091 INFO org.apache.hadoop.tools.DistCp: FAIL README.txt 
> : java.io.IOException:
>  Server returned HTTP response code: 400 for URL: 
> http:/namenode:50070/data/user/tsz/README.txt?ugi=tsz,users
>         at 
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1290)
>         at org.apache.hadoop.hdfs.HftpFileSystem.open(HftpFileSystem.java:143)
>         at org.apache.hadoop.fs.FileSystem.open(FileSystem.java:356)
>         ...
>  {noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to