[
https://issues.apache.org/jira/browse/MAPREDUCE-6377?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14565818#comment-14565818
]
zhihai xu commented on MAPREDUCE-6377:
--------------------------------------
Hi [~bibinchundatt], thanks for reporting this issue.
I can work on this issue. It looks like the change in MAPREDUCE-5052 caused
this issue.
In
[MAPREDUCE-5052|https://github.com/apache/hadoop/commit/ee5351bf22e113d39db3839432bc7d6c743cc736],
"Submit Time" is added at the first column and all columns should be shifted
by one. But {{HsView#jobsTableInit}} is not changed to match the new layout.
{code}
private String jobsTableInit() {
return tableInit().
append(", 'aaData': jobsTableData").
append(", bDeferRender: true").
append(", bProcessing: true").
// Sort by id upon page load
append(", aaSorting: [[2, 'desc']]").
append(", aoColumnDefs:[").
// Maps Total, Maps Completed, Reduces Total and Reduces Completed
append("{'sType':'numeric', 'bSearchable': false, 'aTargets': [ 7, 8,
9, 10 ] }").
append("]}").
toString();
}
{code}
Based on the above code, you can see column "State" which is 7 now is
mistakenly considered as column "Maps Total".
> JHS sorting on state column not working in webUi
> ------------------------------------------------
>
> Key: MAPREDUCE-6377
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-6377
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Components: jobhistoryserver
> Affects Versions: 2.7.0
> Environment: 2 NM, JHS
> Reporter: Bibin A Chundatt
> Assignee: zhihai xu
> Priority: Minor
> Attachments: Sorting Issue.png
>
>
> Steps to reproduce
> ================
> 1. Install and setup HA cluster with JHS
> 2.Create state in in JHS where few jobs are killed and Success
> Check sorting State in JHS WebUI
> Actual
> =====
> Sorting on state column not working in JHS
> Expected
> ======
> Sorting on state column should be working
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)