Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 43656200D2E for ; Tue, 31 Oct 2017 23:08:19 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 41E9F160BFC; Tue, 31 Oct 2017 22:08:19 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 86311160BFB for ; Tue, 31 Oct 2017 23:08:18 +0100 (CET) Received: (qmail 37367 invoked by uid 500); 31 Oct 2017 22:08:08 -0000 Mailing-List: contact common-commits-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list common-commits@hadoop.apache.org Received: (qmail 36558 invoked by uid 99); 31 Oct 2017 22:08:07 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Oct 2017 22:08:07 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 1A4C4DFCF7; Tue, 31 Oct 2017 22:08:03 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: templedf@apache.org To: common-commits@hadoop.apache.org Date: Tue, 31 Oct 2017 22:08:32 -0000 Message-Id: <523d058aeb2f462e8c9725b96b21986b@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [31/44] hadoop git commit: YARN-7056. [Partial backport] Document Resource Profiles feature. (Sunil G via wangda) archived-at: Tue, 31 Oct 2017 22:08:19 -0000 YARN-7056. [Partial backport] Document Resource Profiles feature. (Sunil G via wangda) Change-Id: I5f5d52cdf7aba4ac09684aab573e6916dbad183e (cherry picked from commit 6b88cd1901a65b977fed759e322dcd75a2cd33b6) Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/335e3a63 Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/335e3a63 Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/335e3a63 Branch: refs/heads/branch-3.0 Commit: 335e3a633424c743f9f4bd1658728f979dfe43e0 Parents: 4bf2991 Author: Wangda Tan Authored: Thu Sep 7 10:07:35 2017 -0700 Committer: Daniel Templeton Committed: Tue Oct 31 15:06:17 2017 -0700 ---------------------------------------------------------------------- hadoop-project/src/site/site.xml | 1 + .../src/site/markdown/ResourceProfiles.md | 79 ++++++++++++++++++++ 2 files changed, 80 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/335e3a63/hadoop-project/src/site/site.xml ---------------------------------------------------------------------- diff --git a/hadoop-project/src/site/site.xml b/hadoop-project/src/site/site.xml index 35e743a..2aa1da7 100644 --- a/hadoop-project/src/site/site.xml +++ b/hadoop-project/src/site/site.xml @@ -144,6 +144,7 @@ + http://git-wip-us.apache.org/repos/asf/hadoop/blob/335e3a63/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/markdown/ResourceProfiles.md ---------------------------------------------------------------------- diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/markdown/ResourceProfiles.md b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/markdown/ResourceProfiles.md new file mode 100644 index 0000000..e7b38e1 --- /dev/null +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/markdown/ResourceProfiles.md @@ -0,0 +1,79 @@ + + +Hadoop: YARN Resource Types +=========================== + +Overview +-------- +Resource types support in YARN helps to extend the YARN resource model to a more flexible model which makes it easier to add new countable resource­types. This solution also helps the users to submit jobs with ease to specify the resources they need. + +Resource model of YARN +----------------------- +Resource Manager will load a new configuration file named `resource-types.xml` to determine the set of resource ­types for which scheduling is enabled. Sample XML will look like below. + +```xml + + + yarn.resource-types + resource1, resource2 + + + + yarn.resource-types.resource1.units + G + + +``` + +Similarly, a new configuration file `node­-resources.xml` will also be loaded by Node Manager where the resource capabilities of a node can be specified. + +```xml + + + yarn.nodemanager.resource-type.resource1 + 5G + + + + yarn.nodemanager.resource-type.resource2 + 2m + + + +``` + +Node Manager will use these custom resource types and will register it's capability to Resource Manager. + +Configurations +------------- + +Please note that, `resource-types.xml` and `node­-resources.xml` file also need to be placed in conf directory if new resources are to be added to YARN. + +*In `resource-types.xml`* + +| Configuration Property | Value | Description | +|:---- |:---- |:---- | +| `yarn.resource-types` | resource1 | Custom resource | +| `yarn.resource-types.resource1.units` | G | Default unit for resource1 type | + +*In `node­-resources.xml`* + +| Configuration Property | Value | Description | +|:---- |:---- |:---- | +| `yarn.nodemanager.resource-type.resource1` | 5G | Resource capability for resource named 'resource1'. | + --------------------------------------------------------------------- To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-commits-help@hadoop.apache.org