From common-commits-return-82421-archive-asf-public=cust-asf.ponee.io@hadoop.apache.org Mon May 7 22:35:39 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 4ABF5180648 for ; Mon, 7 May 2018 22:35:39 +0200 (CEST) Received: (qmail 48328 invoked by uid 500); 7 May 2018 20:35:28 -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 47654 invoked by uid 99); 7 May 2018 20:35:27 -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; Mon, 07 May 2018 20:35:27 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 404F5F6C31; Mon, 7 May 2018 20:35:27 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: xyao@apache.org To: common-commits@hadoop.apache.org Date: Mon, 07 May 2018 20:35:46 -0000 Message-Id: In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [21/35] hadoop git commit: YARN-8226. Improved anti-affinity description in YARN Service doc. Contributed by Gour Saha YARN-8226. Improved anti-affinity description in YARN Service doc. Contributed by Gour Saha Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/76987372 Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/76987372 Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/76987372 Branch: refs/heads/HDDS-4 Commit: 7698737207b01e80b1be2b4df60363f952a1c2b4 Parents: 7fe3214 Author: Eric Yang Authored: Thu May 3 13:35:40 2018 -0400 Committer: Eric Yang Committed: Thu May 3 13:35:40 2018 -0400 ---------------------------------------------------------------------- .../main/resources/definition/YARN-Services-Examples.md | 10 +++++++--- .../src/site/markdown/yarn-service/YarnServiceAPI.md | 10 +++++++--- 2 files changed, 14 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/76987372/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-services-api/src/main/resources/definition/YARN-Services-Examples.md ---------------------------------------------------------------------- diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-services-api/src/main/resources/definition/YARN-Services-Examples.md b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-services-api/src/main/resources/definition/YARN-Services-Examples.md index a4ef2d2..83e558c 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-services-api/src/main/resources/definition/YARN-Services-Examples.md +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-services-api/src/main/resources/definition/YARN-Services-Examples.md @@ -351,9 +351,13 @@ POST URL - http://localhost:8088/app/v1/services ##### GET Response JSON GET URL - http://localhost:8088/app/v1/services/hello-world -Note, that the 3 containers will come up on 3 different nodes. If there are less -than 3 NMs running in the cluster, then all 3 container requests will not be -fulfilled and the service will be in non-STABLE state. +Note, for an anti-affinity component no more than 1 container will be allocated +in a specific node. In this example, 3 containers have been requested by +component "hello". All 3 containers were allocated because the cluster had 3 or +more NMs. If the cluster had less than 3 NMs then less than 3 containers would +be allocated. In cases when the number of allocated containers are less than the +number of requested containers, the component and the service will be in +non-STABLE state. ```json { http://git-wip-us.apache.org/repos/asf/hadoop/blob/76987372/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/markdown/yarn-service/YarnServiceAPI.md ---------------------------------------------------------------------- diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/markdown/yarn-service/YarnServiceAPI.md b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/markdown/yarn-service/YarnServiceAPI.md index 496c1a1..fab33c5 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/markdown/yarn-service/YarnServiceAPI.md +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/markdown/yarn-service/YarnServiceAPI.md @@ -766,9 +766,13 @@ POST URL - http://localhost:8088/app/v1/services ##### GET Response JSON GET URL - http://localhost:8088/app/v1/services/hello-world -Note, that the 3 containers will come up on 3 different nodes. If there are less -than 3 NMs running in the cluster, then all 3 container requests will not be -fulfilled and the service will be in non-STABLE state. +Note, for an anti-affinity component no more than 1 container will be allocated +in a specific node. In this example, 3 containers have been requested by +component "hello". All 3 containers were allocated because the cluster had 3 or +more NMs. If the cluster had less than 3 NMs then less than 3 containers would +be allocated. In cases when the number of allocated containers are less than the +number of requested containers, the component and the service will be in +non-STABLE state. ```json { --------------------------------------------------------------------- To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-commits-help@hadoop.apache.org