hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tsz Wo (Nicholas), SZE (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HDFS-1383) Better error messages on hftp
Date Thu, 16 Sep 2010 17:51:34 GMT

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

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

> Tested manually again. ...

I posted a wrong output last time.  It should be the following.

[root@host yahoo-hadoop-0.20.1xx]# ./bin/hadoop fs -put README.txt foo/s.txt
[root@host yahoo-hadoop-0.20.1xx]# ./bin/hadoop fs -mkdir bar                
[root@host yahoo-hadoop-0.20.1xx]# ./bin/hadoop fs -cat hftp://xxx.yyy.zzz:50070/user/root/bar
cat: /user/root/bar is a directory (error code=400)
[root@host yahoo-hadoop-0.20.1xx]# ./bin/hadoop fs -put README.txt r.txt
[root@host yahoo-hadoop-0.20.1xx]# ./bin/hadoop fs -chmod 000 foo r.txt 
[root@host yahoo-hadoop-0.20.1xx]# ./bin/hadoop fs -cat hftp://xxx.yyy.zzz:50070/user/root/foo/s.txt
cat: user=root, access=EXECUTE, inode="foo":root:supergroup:---------
[root@host yahoo-hadoop-0.20.1xx]# ./bin/hadoop fs -cat hftp://xxx.yyy.zzz:50070/user/root/r.txt
cat: Permission denied: user=root, access=READ, inode="r.txt":root:supergroup:--------- (error
[root@host yahoo-hadoop-0.20.1xx]# ./bin/hadoop fs -ls hftp://xxx.yyy.zzz:50070/user/root/foo/s.txt
ls: user=root, access=EXECUTE, inode="foo":root:supergroup:---------
[root@host yahoo-hadoop-0.20.1xx]# ./bin/hadoop fs -get hftp://xxx.yyy.zzz:50070/user/root/r.txt
get: Permission denied
[root@host yahoo-hadoop-0.20.1xx]# ./bin/hadoop fs -get hftp://xxx.yyy.zzz:50070/user/root/foo/s.txt
get: user=root, access=EXECUTE, inode="foo":root:supergroup:---------

> 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
>             Fix For: 0.22.0
>         Attachments: h1383_20100913_y20.patch, h1383_20100915_y20.patch, h1383_20100915b.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.

View raw message