[ 
https://issues.apache.org/jira/browse/HDFS-6407?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Benoy Antony updated HDFS-6407:
-------------------------------
    Attachment: HDFS-6407-002.patch

The patch is update using the data tables plugin (http://www.datatables.net/). 
The same plugin is used in the Resource Manager UI also.

The patch takes care of sorting based on file sizes. Also supports pagination 
on the client side.

Notes about the sorting and pagination features added to the different tables 
on Namenode UI:

# Uses data tables plugin (http://www.datatables.net/).
# Uses latest version 1.10.7 (Yarn uses 1.9.4  and Yarn can potentially migrate 
to the latest version)
# Added logic to detect columns showing file sizes and sort based on file 
sizes. 
# Added custom logic detect columns showing file size and percentage and sort 
based on file sizes. This is used to detect and sort “BlockPool Used” column 
which displays value like 7.74 MB (10%).
# The default pagination is to display all the rows to match the existing 
behavior. The user can further select smaller page sizes  using the drop down.
# The following tables are set up to be sortable and pageable : datanodes, 
decommissioning nodes, datanode volume failures, snapshot table directories, 
snapshotted directories and file/dir listing.
# For file/dir listings , default sort happens on the name column (last 
column). For snapshotted directories, the default sort happens on the snapshot 
directory (second column). For all other tables, the sort happens on the first 
column.


> 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: 002-datanodes-sorted-capacityUsed.png, 
> 002-datanodes.png, 002-filebrowser.png, 002-snapshots.png, 
> HDFS-6407-002.patch, 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