MAPREDUCE-6266. Job#getTrackingURL should consistently return a proper URL (rchiang via rkanter)

This commit is contained in:
Robert Kanter 2015-04-09 13:48:14 -07:00
parent 9c5911294e
commit c4986b2d00
2 changed files with 5 additions and 2 deletions

View File

@ -324,6 +324,9 @@ Release 2.8.0 - UNRELEASED
MAPREDUCE-4844. Counters / AbstractCounters have constant references not
declared final. (Brahma Reddy Battula via gera)
MAPREDUCE-6266. Job#getTrackingURL should consistently return a proper URL
(rchiang via rkanter)
Release 2.7.0 - UNRELEASED
INCOMPATIBLE CHANGES

View File

@ -157,10 +157,10 @@ public class CompletedJob implements org.apache.hadoop.mapreduce.v2.app.job.Job
String historyUrl = "N/A";
try {
historyUrl =
MRWebAppUtil.getApplicationWebURLOnJHSWithoutScheme(conf,
MRWebAppUtil.getApplicationWebURLOnJHSWithScheme(conf,
jobId.getAppId());
} catch (UnknownHostException e) {
//Ignore.
LOG.error("Problem determining local host: " + e.getMessage());
}
report.setTrackingUrl(historyUrl);
report.setAMInfos(getAMInfos());