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 "Benoy Antony (JIRA)" <ji...@apache.org> on 2014/11/22 18:45:12 UTC
[jira] [Commented] (HDFS-6407) new namenode UI, lost ability to
sort columns in datanode tab
[ https://issues.apache.org/jira/browse/HDFS-6407?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14222083#comment-14222083 ]
Benoy Antony commented on HDFS-6407:
------------------------------------
To add sorting to do a new table, the following needs to be done. (More details in http://mottie.github.io/tablesorter/docs/index.html)
1. In the page containing table, include the css and js file
{code}
<link rel="stylesheet" type="text/css" href="/static/tablesorter.default.css" />
<script type="text/javascript" src="/static/jquery.tablesorter.min.js"> </script>
{code}
2. Attach table sorter style on the table
{code}
<table class="tablesorter-default">
{code}
3. Make sure that the table has THEAD and TBODY tags
4. Enable tablesorter to sort the table when the document is loaded.
{code}
$(".tablesorter-default").tablesorter({sortList: [[0,0]]});
{code}
> 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)