MAPREDUCE-3413. RM web ui applications not sorted in any order by default. (Jonathan Eagles via mahadev)
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1206926 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
7f0f8cb7b0
commit
cc4a468113
@ -116,6 +116,9 @@ Release 0.23.1 - Unreleased
|
||||
|
||||
MAPREDUCE-3238. Small cleanup in SchedulerApp. (Todd Lipcon via mahadev)
|
||||
|
||||
MAPREDUCE-3413. RM web ui applications not sorted in any order by default.
|
||||
(Jonathan Eagles via mahadev)
|
||||
|
||||
OPTIMIZATIONS
|
||||
|
||||
BUG FIXES
|
||||
|
@ -51,6 +51,8 @@ protected Class<? extends SubView> content() {
|
||||
|
||||
private String jobsTableInit() {
|
||||
return tableInit().
|
||||
// Sort by id upon page load
|
||||
append(", aaSorting: [[0, 'asc']]").
|
||||
append(",aoColumns:[{sType:'title-numeric'},").
|
||||
append("null,null,{sType:'title-numeric', bSearchable:false},null,").
|
||||
append("null,{sType:'title-numeric',bSearchable:false}, null, null]}").
|
||||
|
@ -119,6 +119,9 @@ protected Collection<TaskAttempt> getTaskAttempts() {
|
||||
}
|
||||
|
||||
private String attemptsTableInit() {
|
||||
return tableInit().append("}").toString();
|
||||
return tableInit().
|
||||
// Sort by id upon page load
|
||||
append(", aaSorting: [[0, 'asc']]").
|
||||
append("}").toString();
|
||||
}
|
||||
}
|
||||
|
@ -38,6 +38,8 @@ public class TasksPage extends AppView {
|
||||
|
||||
private String tasksTableInit() {
|
||||
return tableInit().
|
||||
// Sort by id upon page load
|
||||
append(", aaSorting: [[0, 'asc']]").
|
||||
append(",aoColumns:[{sType:'title-numeric'},{sType:'title-numeric',").
|
||||
append("bSearchable:false},null,{sType:'title-numeric'},").
|
||||
append("{sType:'title-numeric'},{sType:'title-numeric'}]}").toString();
|
||||
|
@ -296,8 +296,12 @@ private String attemptsTableInit() {
|
||||
} else { //MAP
|
||||
b.append(", 5");
|
||||
}
|
||||
b.append(" ] }");
|
||||
b.append("]}");
|
||||
b.append(" ] }]");
|
||||
|
||||
// Sort by id upon page load
|
||||
b.append(", aaSorting: [[0, 'asc']]");
|
||||
|
||||
b.append("}");
|
||||
return b.toString();
|
||||
}
|
||||
|
||||
|
@ -74,8 +74,12 @@ private String tasksTableInit() {
|
||||
} else { //MAP
|
||||
b.append(", 7");
|
||||
}
|
||||
b.append(" ] }");
|
||||
b.append("]}");
|
||||
b.append(" ] }]");
|
||||
|
||||
// Sort by id upon page load
|
||||
b.append(", aaSorting: [[0, 'asc']]");
|
||||
|
||||
b.append("}");
|
||||
return b.toString();
|
||||
}
|
||||
|
||||
|
@ -84,11 +84,17 @@ protected Class<? extends SubView> content() {
|
||||
*/
|
||||
private String jobsTableInit() {
|
||||
return tableInit().
|
||||
append(",aoColumnDefs:[").
|
||||
append("{'sType':'numeric', 'bSearchable': false, 'aTargets': [ 6 ] }").
|
||||
append(",{'sType':'numeric', 'bSearchable': false, 'aTargets': [ 7 ] }").
|
||||
// Sort by id upon page load
|
||||
append(", aaSorting: [[2, 'asc']]").
|
||||
append(", aoColumnDefs:[").
|
||||
// Maps Total
|
||||
append("{'sType':'numeric', 'bSearchable': false, 'aTargets': [ 7 ] }").
|
||||
// Maps Completed
|
||||
append(",{'sType':'numeric', 'bSearchable': false, 'aTargets': [ 8 ] }").
|
||||
// Reduces Total
|
||||
append(",{'sType':'numeric', 'bSearchable': false, 'aTargets': [ 9 ] }").
|
||||
// Reduces Completed
|
||||
append(",{'sType':'numeric', 'bSearchable': false, 'aTargets': [ 10 ] }").
|
||||
append("]}").
|
||||
toString();
|
||||
}
|
||||
|
@ -224,7 +224,7 @@ public static String initSelector(String name) {
|
||||
}
|
||||
|
||||
public static StringBuilder tableInit() {
|
||||
return new StringBuilder("{bJQueryUI:true, aaSorting:[], ").
|
||||
return new StringBuilder("{bJQueryUI:true, ").
|
||||
append("sPaginationType: 'full_numbers', iDisplayLength:20, ").
|
||||
append("aLengthMenu:[20, 40, 60, 80, 100]");
|
||||
}
|
||||
|
@ -51,6 +51,8 @@ public class AllApplicationsPage extends NMView {
|
||||
|
||||
private String appsTableInit() {
|
||||
return tableInit().
|
||||
// Sort by id upon page load
|
||||
append(", aaSorting: [[0, 'asc']]").
|
||||
// applicationid, applicationstate
|
||||
append(", aoColumns:[null, null]} ").toString();
|
||||
}
|
||||
|
@ -61,6 +61,10 @@ private String appsTableInit() {
|
||||
StringBuilder init = tableInit().
|
||||
append(", aoColumns:[{sType:'title-numeric'}, null, null, null, null,").
|
||||
append("null,{sType:'title-numeric', bSearchable:false}, null, null]");
|
||||
|
||||
// Sort by id upon page load
|
||||
init.append(", aaSorting: [[0, 'asc']]");
|
||||
|
||||
String rows = $("rowlimit");
|
||||
int rowLimit = rows.isEmpty() ? MAX_DISPLAY_ROWS : Integer.parseInt(rows);
|
||||
if (list.apps.size() < rowLimit) {
|
||||
|
Loading…
Reference in New Issue
Block a user