hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Akira AJISAKA (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-6169) Move the address in WebImageViewer
Date Tue, 08 Apr 2014 06:42:17 GMT

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

Akira AJISAKA commented on HDFS-6169:
-------------------------------------

Thanks for the comments! Attaching a new patch.
bq. How to differentiate the url "/webhdfs/v1?op=LISTSTATUS" and "/wrongurl"?
I started a NameNode and sent a HTTP request to "/webhdfs/v1?op=liststatus" :
{code}
$ curl -i http://trunk:50070/webhdfs/v1?op=liststatus
HTTP/1.1 404 Not Found
Cache-Control: no-cache
Expires: Tue, 08 Apr 2014 04:36:24 GMT
Date: Tue, 08 Apr 2014 04:36:24 GMT
Pragma: no-cache
Expires: Tue, 08 Apr 2014 04:36:24 GMT
Date: Tue, 08 Apr 2014 04:36:24 GMT
Pragma: no-cache
Content-Type: application/json
Transfer-Encoding: chunked
Server: Jetty(6.1.26)

{"RemoteException":{"exception":"FileNotFoundException","javaClassName":"java.io.FileNotFoundException","message":"File
/webhdfs/v1 does not exist."}}
{code}
Since both "/webhdfs/v1" and "/wrongurl" return 404, I think there is no need to differentiate
them.

> Move the address in WebImageViewer
> ----------------------------------
>
>                 Key: HDFS-6169
>                 URL: https://issues.apache.org/jira/browse/HDFS-6169
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: tools
>    Affects Versions: 2.5.0
>            Reporter: Akira AJISAKA
>            Assignee: Akira AJISAKA
>         Attachments: HDFS-6169.2.patch, HDFS-6169.3.patch, HDFS-6169.4.patch, HDFS-6169.5.patch,
HDFS-6169.patch
>
>
> Move the endpoint of WebImageViewer from http://hostname:port/ to http://hostname:port/webhdfs/v1/
to support {{hdfs dfs -ls}} to WebImageViewer.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message