Return-Path: X-Original-To: apmail-hive-commits-archive@www.apache.org Delivered-To: apmail-hive-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 617E9185A2 for ; Sat, 23 Jan 2016 00:02:05 +0000 (UTC) Received: (qmail 39393 invoked by uid 500); 23 Jan 2016 00:02:05 -0000 Delivered-To: apmail-hive-commits-archive@hive.apache.org Received: (qmail 39346 invoked by uid 500); 23 Jan 2016 00:02:05 -0000 Mailing-List: contact commits-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hive-dev@hive.apache.org Delivered-To: mailing list commits@hive.apache.org Received: (qmail 39335 invoked by uid 99); 23 Jan 2016 00:02:05 -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; Sat, 23 Jan 2016 00:02:05 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 20FDEE0098; Sat, 23 Jan 2016 00:02:05 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: gopalv@apache.org To: commits@hive.apache.org Message-Id: <25f69c3d9600421d8415429b41e576e9@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: hive git commit: HIVE-12693: LLAP: Use Slider Anti-Affinity scheduling mode for daemon distribution (Gopal V, reviewed by Sergey Shelukhin) Date: Sat, 23 Jan 2016 00:02:05 +0000 (UTC) Repository: hive Updated Branches: refs/heads/branch-2.0 f15278af7 -> 03473cc7f HIVE-12693: LLAP: Use Slider Anti-Affinity scheduling mode for daemon distribution (Gopal V, reviewed by Sergey Shelukhin) Signed-off-by: Gopal V Project: http://git-wip-us.apache.org/repos/asf/hive/repo Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/03473cc7 Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/03473cc7 Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/03473cc7 Branch: refs/heads/branch-2.0 Commit: 03473cc7fb830821b6d90f465cb604550388097d Parents: f15278a Author: Gopal V Authored: Fri Jan 22 16:00:42 2016 -0800 Committer: Gopal V Committed: Fri Jan 22 16:01:46 2016 -0800 ---------------------------------------------------------------------- llap-server/src/main/resources/templates.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hive/blob/03473cc7/llap-server/src/main/resources/templates.py ---------------------------------------------------------------------- diff --git a/llap-server/src/main/resources/templates.py b/llap-server/src/main/resources/templates.py index 8c4e4c7..ed8584b 100644 --- a/llap-server/src/main/resources/templates.py +++ b/llap-server/src/main/resources/templates.py @@ -107,18 +107,21 @@ resources = """ "LLAP": { "yarn.role.priority": "1", "yarn.component.instances": "%(instances)d", - "yarn.memory": "%(container.mb)d" + "yarn.memory": "%(container.mb)d", + "yarn.component.placement.policy" : "4" } } } """ +# placement policy "4" is a bit-mask +# only bit set is Slider PlacementPolicy.ANTI_AFFINITY_REQUIRED(4) runner = """ #!/bin/bash -e BASEDIR=$(dirname $0) slider stop %(name)s -slider destroy %(name)s --force +slider destroy %(name)s --force || slider destroy %(name)s slider install-package --name LLAP --package $BASEDIR/llap-%(version)s.zip --replacepkg slider create %(name)s --resources $BASEDIR/resources.json --template $BASEDIR/appConfig.json """