diff --git a/hadoop-mapreduce-project/CHANGES.txt b/hadoop-mapreduce-project/CHANGES.txt index b25e8618576..ca626e9df82 100644 --- a/hadoop-mapreduce-project/CHANGES.txt +++ b/hadoop-mapreduce-project/CHANGES.txt @@ -224,6 +224,10 @@ Release 0.23.3 - UNRELEASED MAPREDUCE-4140. mapreduce classes incorrectly importing "clover.org.apache.*" classes. (Patrick Hunt via tomwhite) + MAPREDUCE-4050. For tasks without assigned containers, changes the node + text on the UI to N/A instead of a link to null. (Bhallamudi Venkata Siva + Kamesh via sseth) + Release 0.23.2 - UNRELEASED INCOMPATIBLE CHANGES diff --git a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-app/src/main/java/org/apache/hadoop/mapreduce/v2/app/webapp/TaskPage.java b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-app/src/main/java/org/apache/hadoop/mapreduce/v2/app/webapp/TaskPage.java index 68a5e807c7e..1e7917e8120 100644 --- a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-app/src/main/java/org/apache/hadoop/mapreduce/v2/app/webapp/TaskPage.java +++ b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-app/src/main/java/org/apache/hadoop/mapreduce/v2/app/webapp/TaskPage.java @@ -87,9 +87,13 @@ public class TaskPage extends AppView { tr(). td(".id", taid). td(".progress", progress). - td(".state", ta.getState()). - td(). - a(".nodelink", url("http://", nodeHttpAddr), nodeHttpAddr); + td(".state", ta.getState()).td(); + if (nodeHttpAddr == null) { + nodeTd._("N/A"); + } else { + nodeTd. + a(".nodelink", url("http://", nodeHttpAddr), nodeHttpAddr); + } if (containerId != null) { String containerIdStr = ta.getAssignedContainerIdStr(); nodeTd._(" ").