mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-12-03 04:39:00 +08:00
35 lines
893 B
Bash
Executable File
35 lines
893 B
Bash
Executable File
#!/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 start master-server;"
|
|
|
|
done
|
|
|
|
workersHost=(${workers//,/ })
|
|
for worker in ${workersHost[@]}
|
|
do
|
|
echo $worker
|
|
|
|
ssh $worker "cd $installPath/; sh bin/escheduler-daemon.sh start worker-server;"
|
|
ssh $worker "cd $installPath/; sh bin/escheduler-daemon.sh start logger-server;"
|
|
done
|
|
|
|
ssh $alertServer "cd $installPath/; sh bin/escheduler-daemon.sh start alert-server;"
|
|
|
|
apiServersHost=(${apiServers//,/ })
|
|
for apiServer in ${apiServersHost[@]}
|
|
do
|
|
echo $apiServer
|
|
|
|
ssh $apiServer "cd $installPath/; sh bin/escheduler-daemon.sh start api-server;"
|
|
done
|
|
|