This is an automated email from the ASF dual-hosted git repository.
zhongjiajie pushed a commit to branch 3.0.0-alpha-prepare
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git
The following commit(s) were added to refs/heads/3.0.0-alpha-prepare by this
push:
new 82756c3128 [FIX-9471][Script] fix run install.sh error (#9472) (#9477)
82756c3128 is described below
commit 82756c31285b8a4807c41a7ddcaf0cf6fb8c2c7d
Author: Kerwin <[email protected]>
AuthorDate: Wed Apr 13 18:03:55 2022 +0800
[FIX-9471][Script] fix run install.sh error (#9472) (#9477)
Co-authored-by: mazhong <[email protected]>
---
script/remove-zk-node.sh | 4 ++--
script/scp-hosts.sh | 2 +-
script/start-all.sh | 2 +-
script/status-all.sh | 2 +-
4 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/script/remove-zk-node.sh b/script/remove-zk-node.sh
index 5abffeddb2..c16f529af6 100755
--- a/script/remove-zk-node.sh
+++ b/script/remove-zk-node.sh
@@ -31,8 +31,8 @@ BIN_DIR=`dirname $0`
BIN_DIR=`cd "$BIN_DIR"; pwd`
DOLPHINSCHEDULER_HOME=$BIN_DIR/..
-source ${workDir}/env/install_env.sh
-source ${workDir}/dolphinscheduler_env.sh
+source ${BIN_DIR}/env/install_env.sh
+source ${BIN_DIR}/env/dolphinscheduler_env.sh
export JAVA_HOME=$JAVA_HOME
diff --git a/script/scp-hosts.sh b/script/scp-hosts.sh
index 2397ede936..cbe658b62e 100755
--- a/script/scp-hosts.sh
+++ b/script/scp-hosts.sh
@@ -27,7 +27,7 @@ if [[ "$OSTYPE" == "darwin"* ]]; then
txt="''"
fi
-workersGroupMap=()
+declare -A workersGroupMap=()
workersGroup=(${workers//,/ })
for workerGroup in ${workersGroup[@]}
diff --git a/script/start-all.sh b/script/start-all.sh
index 002f99d873..28edea95d0 100755
--- a/script/start-all.sh
+++ b/script/start-all.sh
@@ -21,7 +21,7 @@ workDir=`cd ${workDir};pwd`
source ${workDir}/env/install_env.sh
-workersGroupMap=()
+declare -A workersGroupMap=()
workersGroup=(${workers//,/ })
for workerGroup in ${workersGroup[@]}
diff --git a/script/status-all.sh b/script/status-all.sh
index df19eb9c37..afc522dd58 100755
--- a/script/status-all.sh
+++ b/script/status-all.sh
@@ -37,7 +37,7 @@ firstColumn="node server state"
echo $firstColumn
echo -e '\n'
-workersGroupMap=()
+declare -A workersGroupMap=()
workersGroup=(${workers//,/ })
for workerGroup in ${workersGroup[@]}