From 02f11f149d2660be7768675335ee174d6506f1cf Mon Sep 17 00:00:00 2001 From: Kihwal Lee Date: Mon, 28 Jan 2013 21:55:49 +0000 Subject: [PATCH] merge -r 1439652:1439653 Merging YARN-133 git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1439655 13f79535-47bb-0310-9956-ffa450edef68 --- hadoop-yarn-project/CHANGES.txt | 3 ++ .../src/site/apt/ResourceManagerRest.apt.vm | 49 ++++++++++++++----- 2 files changed, 41 insertions(+), 11 deletions(-) diff --git a/hadoop-yarn-project/CHANGES.txt b/hadoop-yarn-project/CHANGES.txt index c25834a0a25..2c8ef1bc277 100644 --- a/hadoop-yarn-project/CHANGES.txt +++ b/hadoop-yarn-project/CHANGES.txt @@ -253,6 +253,9 @@ Release 0.23.7 - UNRELEASED IMPROVEMENTS + YARN-133 Update web services docs for RM clusterMetrics (Ravi Prakash via + kihwal) + OPTIMIZATIONS BUG FIXES diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/apt/ResourceManagerRest.apt.vm b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/apt/ResourceManagerRest.apt.vm index 36600b8aa5f..f55f925bede 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/apt/ResourceManagerRest.apt.vm +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/apt/ResourceManagerRest.apt.vm @@ -177,6 +177,16 @@ ResourceManager REST API's. *---------------+--------------+-------------------------------+ | appsSubmitted | int | The number of applications submitted | *---------------+--------------+-------------------------------+ +| appsCompleted | int | The number of applications completed | +*---------------+--------------+-------------------------------+ +| appsPending | int | The number of applications pending | +*---------------+--------------+-------------------------------+ +| appsRunning | int | The number of applications running | +*---------------+--------------+-------------------------------+ +| appsFailed | int | The number of applications failed | +*---------------+--------------+-------------------------------+ +| appsKilled | int | The number of applications killed | +*---------------+--------------+-------------------------------+ | reservedMB | long | The amount of memory reserved in MB | *---------------+--------------+-------------------------------+ | availableMB | long | The amount of memory available in MB | @@ -187,6 +197,10 @@ ResourceManager REST API's. *---------------+--------------+-------------------------------+ | containersAllocated | int | The number of containers allocated | *---------------+--------------+-------------------------------+ +| containersReserved | int | The number of containers reserved | +*---------------+--------------+-------------------------------+ +| containersPending | int | The number of containers pending | +*---------------+--------------+-------------------------------+ | totalNodes | int | The total number of nodes | *---------------+--------------+-------------------------------+ | activeNodes | int | The number of active nodes | @@ -223,20 +237,26 @@ ResourceManager REST API's. +---+ { - "clusterMetrics": - { - "appsSubmitted":4, + "clusterMetrics":{ + "appsSubmitted":0, + "appsCompleted":0, + "appsPending":0, + "appsRunning":0, + "appsFailed":0, + "appsKilled":0, "reservedMB":0, - "availableMB":8192, + "availableMB":17408, "allocatedMB":0, - "totalMB":8192, "containersAllocated":0, + "containersReserved":0, + "containersPending":0, + "totalMB":17408, "totalNodes":1, - "activeNodes":1, "lostNodes":0, "unhealthyNodes":0, "decommissionedNodes":0, - "rebootedNodes":0 + "rebootedNodes":0, + "activeNodes":1 } } +---+ @@ -264,18 +284,25 @@ ResourceManager REST API's. +---+ - 4 + 0 + 0 + 0 + 0 + 0 + 0 0 - 8192 + 17408 0 0 - 8192 + 0 + 0 + 17408 1 - 1 0 0 0 0 + 1 +---+