hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arpit Gupta (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-2316) webhdfs: a complete FileSystem implementation for accessing HDFS over HTTP
Date Thu, 03 Nov 2011 22:09:32 GMT

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

Arpit Gupta commented on HDFS-2316:

5. Regarding filestatus, delete, rename, mkdirs, setreplication payloads and root element
being a classname. JSON does not require a root element, a JSON response can be an list of
key/value pairs (JSON object). I'd prefer to keep it like that. Specially for filestatus when
doing a liststatus operation, else they payload will increase significantly in size. Another
issue with the name of the class is that it should be an public class, not an implementation
one (currently is using 'HdfsFileStatus').

You mention that the root element class is added because of XML requiring a root element.
We are not spec-ing XML here. So I don't see this as a requirement. And if somebody is doing
JSON to XML they should account for that in the transcoding.

I dont think the size increases significantly by adding the root element. Especially for the
liststatus call it is the following if the root element is there


or if the root is not there


I do no think this adds to much size to the response. 

> webhdfs: a complete FileSystem implementation for accessing HDFS over HTTP
> --------------------------------------------------------------------------
>                 Key: HDFS-2316
>                 URL: https://issues.apache.org/jira/browse/HDFS-2316
>             Project: Hadoop HDFS
>          Issue Type: New Feature
>            Reporter: Tsz Wo (Nicholas), SZE
>            Assignee: Tsz Wo (Nicholas), SZE
>         Attachments: WebHdfsAPI20111020.pdf, WebHdfsAPI20111103.pdf
> We current have hftp for accessing HDFS over HTTP.  However, hftp is a read-only FileSystem
and does not provide "write" accesses.
> In HDFS-2284, we propose to have webhdfs for providing a complete FileSystem implementation
for accessing HDFS over HTTP.  The is the umbrella JIRA for the tasks.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message