hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gop...@apache.org
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 GMT
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 <gopalv@apache.org>


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 <gopalv@apache.org>
Authored: Fri Jan 22 16:00:42 2016 -0800
Committer: Gopal V <gopalv@apache.org>
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
 """


Mime
View raw message