|
|
@ -49,25 +49,25 @@ StateRunning="Running" |
|
|
|
mastersHost=(${masters//,/ }) |
|
|
|
mastersHost=(${masters//,/ }) |
|
|
|
for master in ${mastersHost[@]} |
|
|
|
for master in ${mastersHost[@]} |
|
|
|
do |
|
|
|
do |
|
|
|
masterState=`ssh -p $sshPort $master "cd $installPath/; bash bin/dolphinscheduler-daemon.sh status master-server;"` |
|
|
|
masterState=`ssh -o StrictHostKeyChecking=no -p $sshPort $master "cd $installPath/; bash bin/dolphinscheduler-daemon.sh status master-server;"` |
|
|
|
echo "$master $masterState" |
|
|
|
echo "$master $masterState" |
|
|
|
done |
|
|
|
done |
|
|
|
|
|
|
|
|
|
|
|
# 2.worker server check state |
|
|
|
# 2.worker server check state |
|
|
|
for worker in ${workerNames[@]} |
|
|
|
for worker in ${workerNames[@]} |
|
|
|
do |
|
|
|
do |
|
|
|
workerState=`ssh -p $sshPort $worker "cd $installPath/; bash bin/dolphinscheduler-daemon.sh status worker-server;"` |
|
|
|
workerState=`ssh -o StrictHostKeyChecking=no -p $sshPort $worker "cd $installPath/; bash bin/dolphinscheduler-daemon.sh status worker-server;"` |
|
|
|
echo "$worker $workerState" |
|
|
|
echo "$worker $workerState" |
|
|
|
done |
|
|
|
done |
|
|
|
|
|
|
|
|
|
|
|
# 3.alter server check state |
|
|
|
# 3.alter server check state |
|
|
|
alertState=`ssh -p $sshPort $alertServer "cd $installPath/; bash bin/dolphinscheduler-daemon.sh status alert-server;"` |
|
|
|
alertState=`ssh -o StrictHostKeyChecking=no -p $sshPort $alertServer "cd $installPath/; bash bin/dolphinscheduler-daemon.sh status alert-server;"` |
|
|
|
echo "$alertServer $alertState" |
|
|
|
echo "$alertServer $alertState" |
|
|
|
|
|
|
|
|
|
|
|
# 4.api server check state |
|
|
|
# 4.api server check state |
|
|
|
apiServersHost=(${apiServers//,/ }) |
|
|
|
apiServersHost=(${apiServers//,/ }) |
|
|
|
for apiServer in ${apiServersHost[@]} |
|
|
|
for apiServer in ${apiServersHost[@]} |
|
|
|
do |
|
|
|
do |
|
|
|
apiState=`ssh -p $sshPort $apiServer "cd $installPath/; bash bin/dolphinscheduler-daemon.sh status api-server;"` |
|
|
|
apiState=`ssh -o StrictHostKeyChecking=no -p $sshPort $apiServer "cd $installPath/; bash bin/dolphinscheduler-daemon.sh status api-server;"` |
|
|
|
echo "$apiServer $apiState" |
|
|
|
echo "$apiServer $apiState" |
|
|
|
done |
|
|
|
done |
|
|
|