2019-03-29 18:30:03 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
2019-03-29 14:37:07 +08:00
|
|
|
workDir=`dirname $0`
|
|
|
|
workDir=`cd ${workDir};pwd`
|
2019-03-29 18:30:03 +08:00
|
|
|
|
2019-03-29 14:37:07 +08:00
|
|
|
source $workDir/../conf/config/run_config.conf
|
|
|
|
source $workDir/../conf/config/install_config.conf
|
|
|
|
|
|
|
|
mastersHost=(${masters//,/ })
|
|
|
|
for master in ${mastersHost[@]}
|
|
|
|
do
|
|
|
|
echo $master
|
|
|
|
ssh $master "cd $installPath/; sh bin/escheduler-daemon.sh stop master-server;"
|
|
|
|
|
|
|
|
done
|
|
|
|
|
|
|
|
workersHost=(${workers//,/ })
|
|
|
|
for worker in ${workersHost[@]}
|
|
|
|
do
|
|
|
|
echo $worker
|
|
|
|
|
|
|
|
ssh $worker "cd $installPath/; sh bin/escheduler-daemon.sh stop worker-server;"
|
|
|
|
ssh $worker "cd $installPath/; sh bin/escheduler-daemon.sh stop logger-server;"
|
|
|
|
done
|
|
|
|
|
|
|
|
ssh $alertServer "cd $installPath/; sh bin/escheduler-daemon.sh stop alert-server;"
|
|
|
|
|
|
|
|
apiServersHost=(${apiServers//,/ })
|
|
|
|
for apiServer in ${apiServersHost[@]}
|
|
|
|
do
|
|
|
|
echo $apiServer
|
|
|
|
|
|
|
|
ssh $apiServer "cd $installPath/; sh bin/escheduler-daemon.sh stop api-server;"
|
|
|
|
done
|
|
|
|
|