You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Tom White (JIRA)" <ji...@apache.org> on 2007/07/06 10:52:05 UTC
[jira] Issue Comment Edited: (HADOOP-1568) NameNode Schema for
HttpFileSystem
[ https://issues.apache.org/jira/browse/HADOOP-1568?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12510623 ]
Tom White edited comment on HADOOP-1568 at 7/6/07 1:51 AM:
-----------------------------------------------------------
How about making the file path a part of the URL path? Also, why not drop the .jsp as it doesn't add anything. So:
{{http://<nn>:<port>/ls/path[<?option>[&option]*]}}
How does filter work - can you give an example, please?
For the response, I would strongly recommend using ISO 8601 for the timestamp representation. E.g.:
{{modified="yyyy-MM-ddThh:mm:ssZ"}}
was:
How about making the file path a part of the URL path? Also, why not drop the .jsp as it doesn't add anything. So:
{{http://<nn>:<port>/ls/path[<?option>[&option]*]}}
How does filter work - can you give an example, please?
For the response, I would strongly recommend using ISO 8601 for the timestamp representation. E.g.:
{{{modified="yyyy-MM-ddThh:mm:ssZ"}}
> NameNode Schema for HttpFileSystem
> ----------------------------------
>
> Key: HADOOP-1568
> URL: https://issues.apache.org/jira/browse/HADOOP-1568
> Project: Hadoop
> Issue Type: New Feature
> Components: fs
> Reporter: Chris Douglas
> Assignee: Chris Douglas
>
> This issue will track the design and implementation of (the first pass of) a servlet on the namenode for querying its filesystem via HTTP. The proposed syntax for queries and responses is as follows.
> *Query*
> {noformat}GET http://<nn>:<port>/ls.jsp[<?option>[&option]*] HTTP/1.1{noformat}
> Where _option_ may be any of the following query parameters:
> _path_ : String (default: '/')
> _recursive_ : boolean (default: false)
> _filter_ : String (default: none)
> *Response*
> The response will be returned as an XML document in the following format:
> {noformat}
> <listing path="..." recursive="(yes|no)" filter="..."
> time="yyyy-MM-dd hh:mm:ss UTC" version="...">
> <directory path="..."/>
> <file path="..." modified="yyyy-MM-dd hh:mm:ss" blocksize="..."
> replication="..." size="..."
> dnurl="http://dn:port/streamFile?..."/>
> </listing>
> {noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.