paul8263 commented on code in PR #9614:
URL: https://github.com/apache/dolphinscheduler/pull/9614#discussion_r857056525
##########
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
+ echo "export WORKER_GROUPS_0=${groupNames[$workerIndex]}" >>
worker-server/bin/dolphinscheduler_env.sh
Review Comment:
So can I simply remove line 53 and 54 as it has already been defined in each
worker's application.yaml?
--
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]