paul8263 commented on code in PR #9614:
URL: https://github.com/apache/dolphinscheduler/pull/9614#discussion_r857057626
##########
script/scp-hosts.sh:
##########
@@ -47,11 +42,17 @@ do
echo "scp dirs to $host/$installPath starting"
ssh -p $sshPort $host "cd $installPath/; rm -rf bin/ conf/ lib/
script/ sql/ ui/"
+ for i in ${!workerNames[@]}; do
+ if [[ ${workerNames[$i]} == $host ]]; then
+ workerIndex=$i
+ break
+ fi
+ done
+
for dsDir in bin master-server worker-server alert-server api-server ui
do
- # if worker in workersGroupMap
- if [[ "${workersGroupMap[${host}]}" ]]; then
- echo "export WORKER_GROUPS_0=${workersGroupMap[${host}]}" >>
worker-server/bin/dolphinscheduler_env.sh
+ if [[ ! -z ${workerIndex+x} ]]; then
Review Comment:
It is a way to test whether workerIndex has been defined (The IP were
included in workers or not ). If we don't need this I will remove it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]