HIVE-15921. Re-order the slider stop command to avoid a force if possible. 
(Siddharth Seth, reviewed by Sergey Shelukhin)


Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/c1381fc1
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/c1381fc1
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/c1381fc1

Branch: refs/heads/master
Commit: c1381fc190ad4e31eea9efb7c221f43740359789
Parents: 684bda0
Author: Siddharth Seth <[email protected]>
Authored: Thu Feb 16 09:41:37 2017 -0800
Committer: Siddharth Seth <[email protected]>
Committed: Thu Feb 16 09:41:37 2017 -0800

----------------------------------------------------------------------
 llap-server/src/main/resources/templates.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/c1381fc1/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 57b4b0d..e6ae623 100644
--- a/llap-server/src/main/resources/templates.py
+++ b/llap-server/src/main/resources/templates.py
@@ -128,7 +128,7 @@ runner = """
 #!/bin/bash -e
 
 BASEDIR=$(dirname $0)
-slider stop %(name)s --force || slider stop %(name)s
+slider stop %(name)s --wait 10 || slider stop %(name)s --force --wait 30
 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 %(queue.string)s

Reply via email to