YARN-764. blank Used Resources on Capacity Scheduler page (Nemon Lou via tgraves)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1490387 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Thomas Graves 2013-06-06 18:25:36 +00:00
parent ba6bd09811
commit 98f55792ff
2 changed files with 5 additions and 1 deletions

View File

@ -442,6 +442,9 @@ Release 2.1.0-beta - UNRELEASED
YARN-742. Log aggregation causes a lot of redundant setPermission calls.
(jlowe via kihwal)
YARN-764. blank Used Resources on Capacity Scheduler page (Nemon Lou via
tgraves)
BREAKDOWN OF HADOOP-8562 SUBTASKS AND RELATED JIRAS
YARN-158. Yarn creating package-info.java must not depend on sh.

View File

@ -23,6 +23,7 @@ import static org.apache.hadoop.yarn.util.StringHelper.join;
import java.util.ArrayList;
import org.apache.hadoop.util.StringUtils;
import org.apache.commons.lang.StringEscapeUtils;
import org.apache.hadoop.yarn.server.resourcemanager.ResourceManager;
import org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CSQueue;
import org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacityScheduler;
@ -107,7 +108,7 @@ class CapacitySchedulerPage extends RmView {
_("Used Capacity:", percent(lqinfo.getUsedCapacity() / 100)).
_("Absolute Capacity:", percent(lqinfo.getAbsoluteCapacity() / 100)).
_("Absolute Max Capacity:", percent(lqinfo.getAbsoluteMaxCapacity() / 100)).
_("Used Resources:", lqinfo.getUsedResources().toString()).
_("Used Resources:", StringEscapeUtils.escapeHtml(lqinfo.getUsedResources().toString())).
_("Num Active Applications:", Integer.toString(lqinfo.getNumActiveApplications())).
_("Num Pending Applications:", Integer.toString(lqinfo.getNumPendingApplications())).
_("Num Containers:", Integer.toString(lqinfo.getNumContainers())).