[ 
https://issues.apache.org/jira/browse/HADOOP-1568?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12511234
 ] 

Doug Cutting commented on HADOOP-1568:
--------------------------------------

> It isn't clear how one would format a list of block locations in a reply. [ 
> ... ]

I think we need to be clearer about the goal here before we will reach 
consensus.  If the goal is to have a simple way of accessing HDFS (and 
potentially other file systems) over HTTP that's unlikely to change between 
versions, then I don't think we should be worrying about, e.g., formatting 
lists of block locations.  Here we should be looking for a 
lowest-common-denominator to maximize interoperability.  Mostly it just needs 
to make distcp and MapReduce input possible, with decent performance.  It 
should not attempt to be full featured (as that will make it more fragile and 
prone to inter-version compatibility problems) and is thus unlikely to perform 
optimally.

If scraping HTML doesn't work, we should consider WEBDAV (again).  The PROPFIND 
method permits directory enumeration, returned as XML.

> 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.

Reply via email to