From 9e9e36fa702dbaf364fb85a34d27177769615322 Mon Sep 17 00:00:00 2001 From: Kihwal Lee Date: Fri, 15 Sep 2017 13:16:43 -0500 Subject: [PATCH] HDFS-12424. Datatable sorting on the Datanode Information page in the Namenode UI is broken. Contributed by Shawna Martell. --- .../hadoop-hdfs/src/main/webapps/hdfs/dfshealth.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 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 f2b8ac3cc22..6c495bc28be 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 @@ -324,11 +324,11 @@ 'columns': [ { 'orderDataType': 'ng-value', 'searchable': true }, { 'orderDataType': 'ng-value', 'searchable': true }, - { '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' }, + { 'type': 'num' }, + { 'orderDataType': 'ng-value', 'type': 'num'}, + { 'type': 'string' } ]}); renderHistogram(data); $('#ui-tabs a[href="#tab-datanode"]').tab('show');