MAPREDUCE-6266. Job#getTrackingURL should consistently return a proper URL (rchiang via rkanter)
This commit is contained in:
parent
9c5911294e
commit
c4986b2d00
|
@ -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
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue