DolphinScheduler/script/stop-all.sh
qiaozhanwei bbe7a256a8 scripts name standardization (#813)
* service start exception modify

* master,worker start modify

* .env update

* install-escheduler-ui.sh,monitor_server.py and install.sh scripts comment change to english and install-escheduler-ui.sh use escheduler change to dolphinscheduler

* scripts name standardization
2019-09-18 18:21:47 +08:00

36 lines
889 B
Bash

#!/bin/sh
workDir=`dirname $0`
workDir=`cd ${workDir};pwd`
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