You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Andrew Wang (JIRA)" <ji...@apache.org> on 2016/03/17 21:35:33 UTC
[jira] [Commented] (HDFS-10176) WebHdfs LISTSTATUS does not offer
any sorting
[ https://issues.apache.org/jira/browse/HDFS-10176?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15200320#comment-15200320 ]
Andrew Wang commented on HDFS-10176:
------------------------------------
Hi Romain, is the request to expose additional fields in the [Java FileStatus object|https://github.com/apache/hadoop/blob/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileStatus.java]? Or you want sorting on these different fields?
We do pagination right now based on the path since that's the primary key. I'd rather implement different sort orders on the client-side to avoid additional NN overhead.
> WebHdfs LISTSTATUS does not offer any sorting
> ---------------------------------------------
>
> Key: HDFS-10176
> URL: https://issues.apache.org/jira/browse/HDFS-10176
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: webhdfs
> Affects Versions: 2.7.0
> Reporter: Romain Rigaux
>
> http://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-hdfs/WebHDFS.html#List_a_Directory
> Times, names, sizes would allow a Web client to offer a richer experience to its user:
> {code}
> {
> "accessTime" : 1320171722771,
> "blockSize" : 33554432,
> "group" : "supergroup",
> "length" : 24930,
> "modificationTime": 1320171722771,
> "owner" : "webuser",
> "pathSuffix" : "a.patch",
> "permission" : "644",
> "replication" : 1,
> "type" : "FILE"
> },
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)