This is an automated email from the ASF dual-hosted git repository. zhongjiajie pushed a commit to branch 3.0.0-beta-prepare in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git
commit 8ad17efeb56ad35d3a5252bcb0b7993c768b9c12 Author: Jiajie Zhong <[email protected]> AuthorDate: Thu May 26 09:59:40 2022 +0800 [fix] Deploy scp-hosts use fullpath avoid dangling (#10249) This path fix error modify worker application.yaml when running `scp-hosts.sh` script in different directory. Currently setting only work when running `scp-hosts.sh` in path `<DOLPHINSCHEDULER_HOME>/bin` using command `./scp-hosts.sh`. And will fail when we run script in directory `<DOLPHINSCHEDULER_HOME>` using command `./bin/scp-hosts.sh` ref: #10209 and #10208 (cherry picked from commit 58afe5d8b5a76460bb058eec1c15447a4d6ba7be) --- script/scp-hosts.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/scp-hosts.sh b/script/scp-hosts.sh index 25b688170a..285f3280b2 100755 --- a/script/scp-hosts.sh +++ b/script/scp-hosts.sh @@ -47,7 +47,7 @@ do fi done # set worker groups in application.yaml - [[ -n ${workerIndex} ]] && sed -i "s/- default/- ${groupNames[$workerIndex]}/" ../worker-server/conf/application.yaml + [[ -n ${workerIndex} ]] && sed -i "s/- default/- ${groupNames[$workerIndex]}/" $workDir/../worker-server/conf/application.yaml for dsDir in bin master-server worker-server alert-server api-server ui tools do @@ -56,7 +56,7 @@ do scp -q -P $sshPort -r $workDir/../$dsDir $host:$installPath done # restore worker groups to default - [[ -n ${workerIndex} ]] && sed -i "s/- ${groupNames[$workerIndex]}/- default/" ../worker-server/conf/application.yaml + [[ -n ${workerIndex} ]] && sed -i "s/- ${groupNames[$workerIndex]}/- default/" $workDir/../worker-server/conf/application.yaml echo "scp dirs to $host/$installPath complete" done
