MAPREDUCE-3114. svn merge -c r1177187 --ignore-ancestry ../../trunk/
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.23@1177190 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
08a348d1e5
commit
034d0d8fee
|
@ -1440,6 +1440,9 @@ Release 0.23.0 - Unreleased
|
|||
MAPREDUCE-3078. Ensure MapReduce AM reports progress correctly for
|
||||
displaying on the RM Web-UI. (vinodkv via acmurthy)
|
||||
|
||||
MAPREDUCE-3114. Fixed invalid ApplicationURL on RM WebUI. (Subroto Sanyal
|
||||
via vinodkv)
|
||||
|
||||
Release 0.22.0 - Unreleased
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
|
|
@ -60,7 +60,7 @@ class AppsBlock extends HtmlBlock {
|
|||
String trackingUrl = app.getTrackingUrl();
|
||||
String ui = trackingUrl == null || trackingUrl.isEmpty() ? "UNASSIGNED" :
|
||||
(app.getFinishTime() == 0 ?
|
||||
"ApplicationMaster URL" : "JobHistory URL");
|
||||
"ApplicationMaster" : "History");
|
||||
String percent = String.format("%.1f", app.getProgress() * 100);
|
||||
tbody.
|
||||
tr().
|
||||
|
@ -79,7 +79,8 @@ class AppsBlock extends HtmlBlock {
|
|||
div(_PROGRESSBAR_VALUE).
|
||||
$style(join("width:", percent, '%'))._()._()._().
|
||||
td().
|
||||
a(trackingUrl == null ? "#" : join("http://", trackingUrl), ui)._().
|
||||
a(trackingUrl == null || trackingUrl.isEmpty() || "N/A".equalsIgnoreCase(trackingUrl) ?
|
||||
"#" : join("http://", trackingUrl), ui)._().
|
||||
td(app.getDiagnostics().toString())._();
|
||||
if (list.rendering != Render.HTML && ++i >= 20) break;
|
||||
}
|
||||
|
|
|
@ -62,8 +62,8 @@ class AppsList implements ToJSON {
|
|||
}
|
||||
String appID = app.getApplicationId().toString();
|
||||
String trackingUrl = app.getTrackingUrl();
|
||||
String ui = trackingUrl == null ? "UNASSIGNED" :
|
||||
(app.getFinishTime() == 0 ? "ApplicationMaster" : "JobHistory");
|
||||
String ui = trackingUrl == null || trackingUrl.isEmpty() || "N/A".equalsIgnoreCase(trackingUrl) ?
|
||||
"UNASSIGNED" : (app.getFinishTime() == 0 ? "ApplicationMaster" : "JobHistory");
|
||||
out.append("[\"");
|
||||
appendSortable(out, app.getApplicationId().getId());
|
||||
appendLink(out, appID, rc.prefix(), "app", appID).append(_SEP).
|
||||
|
@ -73,7 +73,8 @@ class AppsList implements ToJSON {
|
|||
append(app.getState().toString()).append(_SEP);
|
||||
appendProgressBar(out, app.getProgress()).append(_SEP);
|
||||
appendLink(out, ui, rc.prefix(),
|
||||
trackingUrl == null ? "#" : "http://", trackingUrl).
|
||||
trackingUrl == null || trackingUrl.isEmpty() || "N/A".equalsIgnoreCase(trackingUrl) ?
|
||||
"#" : "http://", trackingUrl).
|
||||
append(_SEP).append(escapeJavaScript(escapeHtml(
|
||||
app.getDiagnostics().toString()))).
|
||||
append("\"]");
|
||||
|
|
Loading…
Reference in New Issue