AMBARI-21566. RU: Hive service check was failed during RU (aonishuk)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/439da8bd Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/439da8bd Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/439da8bd Branch: refs/heads/branch-2.5 Commit: 439da8bd015288c54c215ef711dcd556b9a3d24e Parents: b56446a Author: Andrew Onishuk <aonis...@hortonworks.com> Authored: Mon Jul 24 20:58:42 2017 +0300 Committer: Andrew Onishuk <aonis...@hortonworks.com> Committed: Mon Jul 24 20:58:42 2017 +0300 ---------------------------------------------------------------------- .../src/main/python/resource_management/core/files/killtree.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/439da8bd/ambari-common/src/main/python/resource_management/core/files/killtree.sh ---------------------------------------------------------------------- diff --git a/ambari-common/src/main/python/resource_management/core/files/killtree.sh b/ambari-common/src/main/python/resource_management/core/files/killtree.sh index c19efd9..c7809f9 100644 --- a/ambari-common/src/main/python/resource_management/core/files/killtree.sh +++ b/ambari-common/src/main/python/resource_management/core/files/killtree.sh @@ -25,7 +25,7 @@ set -e killtree() { local _pid=$1 local _sig=${2:--TERM} - ambari-sudo.sh kill -stop ${_pid} # needed to stop quickly forking parent from producing children between child killing and parent killing + ambari-sudo.sh kill -s stop ${_pid} # needed to stop quickly forking parent from producing children between child killing and parent killing for _child in $(ps -o pid --no-headers --ppid ${_pid}); do killtree ${_child} ${_sig} done