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

Haohui Mai commented on HDFS-6407:
----------------------------------

bq. It will be a good idea to standardize on one sort/pagination plugin across 
hdfs and yarn UIs.

Just to reiterate, I don't see a way to do it correctly by simply sorting rows 
in the HTML tables. What are the expected results of the following case?

{code}
|| DN || DFS Usage ||
| dn1 | 92 GB |
| dn2 | 110 GB |
| dn3 | 4 MB |
{code}

If you sort them by DFS Usage alphabetically (which is what the plugin does), 
you'll get:

{code}
|| DN || DFS Usage ||
| dn2 | 110 GB |
| dn3 | 4 MB |
| dn1 | 92 GB |
{code}

The results do not make sense to me. What it implies is that the sorting should 
be done at the JSON data, and it should be done at the same time when 
pagination is done.

> new namenode UI, lost ability to sort columns in datanode tab
> -------------------------------------------------------------
>
>                 Key: HDFS-6407
>                 URL: https://issues.apache.org/jira/browse/HDFS-6407
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: namenode
>    Affects Versions: 2.4.0
>            Reporter: Nathan Roberts
>            Assignee: Benoy Antony
>            Priority: Minor
>         Attachments: HDFS-6407.patch, browse_directory.png, datanodes.png, 
> snapshots.png
>
>
> old ui supported clicking on column header to sort on that column. The new ui 
> seems to have dropped this very useful feature.
> There are a few tables in the Namenode UI to display  datanodes information, 
> directory listings and snapshots.
> When there are many items in the tables, it is useful to have ability to sort 
> on the different columns.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to