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-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
|
OPTIMIZATIONS
|
||||||
|
|
||||||
BUG FIXES
|
BUG FIXES
|
||||||
|
@ -51,6 +51,8 @@ protected Class<? extends SubView> content() {
|
|||||||
|
|
||||||
private String jobsTableInit() {
|
private String jobsTableInit() {
|
||||||
return tableInit().
|
return tableInit().
|
||||||
|
// Sort by id upon page load
|
||||||
|
append(", aaSorting: [[0, 'asc']]").
|
||||||
append(",aoColumns:[{sType:'title-numeric'},").
|
append(",aoColumns:[{sType:'title-numeric'},").
|
||||||
append("null,null,{sType:'title-numeric', bSearchable:false},null,").
|
append("null,null,{sType:'title-numeric', bSearchable:false},null,").
|
||||||
append("null,{sType:'title-numeric',bSearchable:false}, null, null]}").
|
append("null,{sType:'title-numeric',bSearchable:false}, null, null]}").
|
||||||
|
@ -119,6 +119,9 @@ protected Collection<TaskAttempt> getTaskAttempts() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private String attemptsTableInit() {
|
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() {
|
private String tasksTableInit() {
|
||||||
return tableInit().
|
return tableInit().
|
||||||
|
// Sort by id upon page load
|
||||||
|
append(", aaSorting: [[0, 'asc']]").
|
||||||
append(",aoColumns:[{sType:'title-numeric'},{sType:'title-numeric',").
|
append(",aoColumns:[{sType:'title-numeric'},{sType:'title-numeric',").
|
||||||
append("bSearchable:false},null,{sType:'title-numeric'},").
|
append("bSearchable:false},null,{sType:'title-numeric'},").
|
||||||
append("{sType:'title-numeric'},{sType:'title-numeric'}]}").toString();
|
append("{sType:'title-numeric'},{sType:'title-numeric'}]}").toString();
|
||||||
|
@ -296,8 +296,12 @@ private String attemptsTableInit() {
|
|||||||
} else { //MAP
|
} else { //MAP
|
||||||
b.append(", 5");
|
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();
|
return b.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -74,8 +74,12 @@ private String tasksTableInit() {
|
|||||||
} else { //MAP
|
} else { //MAP
|
||||||
b.append(", 7");
|
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();
|
return b.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -84,11 +84,17 @@ protected Class<? extends SubView> content() {
|
|||||||
*/
|
*/
|
||||||
private String jobsTableInit() {
|
private String jobsTableInit() {
|
||||||
return tableInit().
|
return tableInit().
|
||||||
|
// Sort by id upon page load
|
||||||
|
append(", aaSorting: [[2, 'asc']]").
|
||||||
append(", aoColumnDefs:[").
|
append(", aoColumnDefs:[").
|
||||||
append("{'sType':'numeric', 'bSearchable': false, 'aTargets': [ 6 ] }").
|
// Maps Total
|
||||||
append(",{'sType':'numeric', 'bSearchable': false, 'aTargets': [ 7 ] }").
|
append("{'sType':'numeric', 'bSearchable': false, 'aTargets': [ 7 ] }").
|
||||||
|
// Maps Completed
|
||||||
append(",{'sType':'numeric', 'bSearchable': false, 'aTargets': [ 8 ] }").
|
append(",{'sType':'numeric', 'bSearchable': false, 'aTargets': [ 8 ] }").
|
||||||
|
// Reduces Total
|
||||||
append(",{'sType':'numeric', 'bSearchable': false, 'aTargets': [ 9 ] }").
|
append(",{'sType':'numeric', 'bSearchable': false, 'aTargets': [ 9 ] }").
|
||||||
|
// Reduces Completed
|
||||||
|
append(",{'sType':'numeric', 'bSearchable': false, 'aTargets': [ 10 ] }").
|
||||||
append("]}").
|
append("]}").
|
||||||
toString();
|
toString();
|
||||||
}
|
}
|
||||||
|
@ -224,7 +224,7 @@ public static String initSelector(String name) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static StringBuilder tableInit() {
|
public static StringBuilder tableInit() {
|
||||||
return new StringBuilder("{bJQueryUI:true, aaSorting:[], ").
|
return new StringBuilder("{bJQueryUI:true, ").
|
||||||
append("sPaginationType: 'full_numbers', iDisplayLength:20, ").
|
append("sPaginationType: 'full_numbers', iDisplayLength:20, ").
|
||||||
append("aLengthMenu:[20, 40, 60, 80, 100]");
|
append("aLengthMenu:[20, 40, 60, 80, 100]");
|
||||||
}
|
}
|
||||||
|
@ -51,6 +51,8 @@ public class AllApplicationsPage extends NMView {
|
|||||||
|
|
||||||
private String appsTableInit() {
|
private String appsTableInit() {
|
||||||
return tableInit().
|
return tableInit().
|
||||||
|
// Sort by id upon page load
|
||||||
|
append(", aaSorting: [[0, 'asc']]").
|
||||||
// applicationid, applicationstate
|
// applicationid, applicationstate
|
||||||
append(", aoColumns:[null, null]} ").toString();
|
append(", aoColumns:[null, null]} ").toString();
|
||||||
}
|
}
|
||||||
|
@ -61,6 +61,10 @@ private String appsTableInit() {
|
|||||||
StringBuilder init = tableInit().
|
StringBuilder init = tableInit().
|
||||||
append(", aoColumns:[{sType:'title-numeric'}, null, null, null, null,").
|
append(", aoColumns:[{sType:'title-numeric'}, null, null, null, null,").
|
||||||
append("null,{sType:'title-numeric', bSearchable:false}, 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");
|
String rows = $("rowlimit");
|
||||||
int rowLimit = rows.isEmpty() ? MAX_DISPLAY_ROWS : Integer.parseInt(rows);
|
int rowLimit = rows.isEmpty() ? MAX_DISPLAY_ROWS : Integer.parseInt(rows);
|
||||||
if (list.apps.size() < rowLimit) {
|
if (list.apps.size() < rowLimit) {
|
||||||
|
Loading…
Reference in New Issue
Block a user