MAPREDUCE-4040. History links should use hostname rather than IP address. (Contributed by Bhallamudi Venkata Siva Kamesh)
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1312076 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e235dd3760
commit
13bfe4794b
|
@ -307,6 +307,9 @@ Release 0.23.3 - UNRELEASED
|
||||||
MAPREDUCE-4017. Add jobname to jobsummary log (tgraves and Koji Noguchi
|
MAPREDUCE-4017. Add jobname to jobsummary log (tgraves and Koji Noguchi
|
||||||
via bobby)
|
via bobby)
|
||||||
|
|
||||||
|
MAPREDUCE-4040. History links should use hostname rather than IP address.
|
||||||
|
(Bhallamudi Venkata Siva Kamesh via sseth)
|
||||||
|
|
||||||
Release 0.23.2 - UNRELEASED
|
Release 0.23.2 - UNRELEASED
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -507,7 +507,7 @@ public class JobHistoryUtils {
|
||||||
StringBuffer sb = new StringBuffer();
|
StringBuffer sb = new StringBuffer();
|
||||||
if (address.getAddress().isAnyLocalAddress() ||
|
if (address.getAddress().isAnyLocalAddress() ||
|
||||||
address.getAddress().isLoopbackAddress()) {
|
address.getAddress().isLoopbackAddress()) {
|
||||||
sb.append(InetAddress.getLocalHost().getHostAddress());
|
sb.append(InetAddress.getLocalHost().getCanonicalHostName());
|
||||||
} else {
|
} else {
|
||||||
sb.append(address.getHostName());
|
sb.append(address.getHostName());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue