MAPREDUCE-3679. AM logs and others should not automatically refresh after every 1 second. (Vinod KV via mahadev)
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1238146 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
76b653a367
commit
443d8f6c0b
|
@ -214,6 +214,9 @@ Release 0.23.1 - Unreleased
|
|||
MAPREDUCE-3732. Modified CapacityScheduler to use only users with pending
|
||||
requests for computing user-limits. (Arun C Murthy via vinodkv)
|
||||
|
||||
MAPREDUCE-3679. AM logs and others should not automatically refresh after every 1
|
||||
second. (Vinod KV via mahadev)
|
||||
|
||||
OPTIMIZATIONS
|
||||
|
||||
MAPREDUCE-3567. Extraneous JobConf objects in AM heap. (Vinod Kumar
|
||||
|
|
|
@ -33,7 +33,6 @@ public class AppView extends TwoColumnLayout {
|
|||
}
|
||||
|
||||
protected void commonPreHead(Page.HTML<_> html) {
|
||||
html.meta_http("refresh", "10");
|
||||
set(ACCORDION_ID, "nav");
|
||||
set(initID(ACCORDION, "nav"), "{autoHeight:false, active:1}");
|
||||
set(THEMESWITCHER_ID, "themeswitcher");
|
||||
|
|
|
@ -27,6 +27,10 @@ public class CountersPage extends AppView {
|
|||
|
||||
@Override protected void preHead(Page.HTML<_> html) {
|
||||
commonPreHead(html);
|
||||
|
||||
// Counters page is a summary. Helps to refresh automatically.
|
||||
html.meta_http("refresh", "10");
|
||||
|
||||
String tid = $(TASK_ID);
|
||||
String activeNav = "3";
|
||||
if(tid == null || tid.isEmpty()) {
|
||||
|
|
|
@ -32,6 +32,10 @@ public class JobPage extends AppView {
|
|||
set(TITLE, jobID.isEmpty() ? "Bad request: missing job ID"
|
||||
: join("MapReduce Job ", $(JOB_ID)));
|
||||
commonPreHead(html);
|
||||
|
||||
// This is a job-summary page. Helps to refresh automatically.
|
||||
html.meta_http("refresh", "10");
|
||||
|
||||
set(initID(ACCORDION, "nav"), "{autoHeight:false, active:2}");
|
||||
}
|
||||
|
||||
|
|
|
@ -116,6 +116,11 @@ public class TaskPage extends AppView {
|
|||
|
||||
@Override protected void preHead(Page.HTML<_> html) {
|
||||
commonPreHead(html);
|
||||
|
||||
// This page is a list of all attempts which are limited in number. Okay to
|
||||
// refresh automatically.
|
||||
html.meta_http("refresh", "10");
|
||||
|
||||
set(initID(ACCORDION, "nav"), "{autoHeight:false, active:3}");
|
||||
set(DATATABLES_ID, "attempts");
|
||||
set(initID(DATATABLES, "attempts"), attemptsTableInit());
|
||||
|
|
|
@ -44,6 +44,10 @@ public class ApplicationPage extends NMView implements YarnWebParams {
|
|||
|
||||
@Override protected void preHead(Page.HTML<_> html) {
|
||||
commonPreHead(html);
|
||||
|
||||
// Per-app information. Helps to refresh automatically.
|
||||
html.meta_http("refresh", "10");
|
||||
|
||||
set(DATATABLES_ID, "containers");
|
||||
set(initID(DATATABLES, "containers"), containersTableInit());
|
||||
setTableStyles(html, "containers");
|
||||
|
|
|
@ -62,7 +62,6 @@ public class ContainerLogsPage extends NMView {
|
|||
String redirectUrl = $(REDIRECT_URL);
|
||||
if (redirectUrl == null || redirectUrl.isEmpty()) {
|
||||
set(TITLE, join("Logs for ", $(CONTAINER_ID)));
|
||||
html.meta_http("refresh", "10");
|
||||
} else {
|
||||
if (redirectUrl.equals("false")) {
|
||||
set(TITLE, join("Failed redirect for ", $(CONTAINER_ID)));
|
||||
|
|
|
@ -40,6 +40,10 @@ public class ContainerPage extends NMView implements YarnWebParams {
|
|||
@Override
|
||||
protected void preHead(Page.HTML<_> html) {
|
||||
commonPreHead(html);
|
||||
|
||||
// Per-container information. Helps to refresh automatically.
|
||||
html.meta_http("refresh", "10");
|
||||
|
||||
setTitle("Container " + $(CONTAINER_ID));
|
||||
set(initID(ACCORDION, "nav"), "{autoHeight:false, active:0}");
|
||||
}
|
||||
|
|
|
@ -33,7 +33,6 @@ public class NMView extends TwoColumnLayout {
|
|||
}
|
||||
|
||||
protected void commonPreHead(Page.HTML<_> html) {
|
||||
html.meta_http("refresh", "10");
|
||||
set(ACCORDION_ID, "nav");
|
||||
set(initID(ACCORDION, "nav"), "{autoHeight:false, active:0}");
|
||||
set(THEMESWITCHER_ID, "themeswitcher");
|
||||
|
|
|
@ -41,6 +41,10 @@ public class NodePage extends NMView {
|
|||
@Override
|
||||
protected void commonPreHead(HTML<_> html) {
|
||||
super.commonPreHead(html);
|
||||
|
||||
// Node summary page. Helps to refresh automatically.
|
||||
html.meta_http("refresh", "10");
|
||||
|
||||
set(initID(ACCORDION, "nav"), "{autoHeight:false, active:0}");
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,8 @@ public class AppPage extends RmView {
|
|||
|
||||
@Override protected void preHead(Page.HTML<_> html) {
|
||||
commonPreHead(html);
|
||||
// App page is per-app information. Helps to refresh automatically.
|
||||
html.meta_http("refresh", "10");
|
||||
}
|
||||
|
||||
@Override protected Class<? extends SubView> content() {
|
||||
|
|
|
@ -39,7 +39,6 @@ public class RmView extends TwoColumnLayout {
|
|||
}
|
||||
|
||||
protected void commonPreHead(Page.HTML<_> html) {
|
||||
//html.meta_http("refresh", "20");
|
||||
set(ACCORDION_ID, "nav");
|
||||
set(initID(ACCORDION, "nav"), "{autoHeight:false, active:0}");
|
||||
set(THEMESWITCHER_ID, "themeswitcher");
|
||||
|
|
Loading…
Reference in New Issue