From 07dee7fd6340069133502d8aef79b2e7ccc7a36b Mon Sep 17 00:00:00 2001 From: Kihwal Lee Date: Fri, 15 Sep 2017 09:55:59 -0500 Subject: [PATCH] HDFS-12424. Datatable sorting on the Datanode Information page in the Namenode UI is broken. Contributed by Shawna Martell. (cherry picked from commit 78bdf10ae40300a5f2f3b95491d280802edc1df2) --- .../hadoop-hdfs/src/main/webapps/hdfs/dfshealth.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/dfshealth.js b/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/dfshealth.js index b785274f4df..de62622e3d2 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/dfshealth.js +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/dfshealth.js @@ -331,12 +331,12 @@ 'columns': [ { 'orderDataType': 'ng-value', 'searchable': true }, { 'orderDataType': 'ng-value', 'searchable': true }, - { 'orderDataType': 'ng-value', 'type': 'numeric' }, - { 'orderDataType': 'ng-value', 'type': 'numeric' }, - { 'orderDataType': 'ng-value', 'type': 'numeric' }, - { 'orderData': 3, 'type': 'numeric' }, - { 'orderDataType': 'ng-value', 'type': 'numeric'}, - { 'orderData': 5 } + { 'orderDataType': 'ng-value', 'type': 'num' }, + { 'orderDataType': 'ng-value', 'type': 'num' }, + { 'orderDataType': 'ng-value', 'type': 'num' }, + { 'type': 'num' }, + { 'orderDataType': 'ng-value', 'type': 'num'}, + { 'type': 'string' } ]}); renderHistogram(data); $('#ui-tabs a[href="#tab-datanode"]').tab('show');