This is an automated email from the ASF dual-hosted git repository.
kerwin pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git
The following commit(s) were added to refs/heads/dev by this push:
new 8821b91829 [FIX-9471][Script] fix run install.sh error (#9472)
8821b91829 is described below
commit 8821b918292dfefbf7d0350c77e4149a600faa1e
Author: mazhong <[email protected]>
AuthorDate: Wed Apr 13 17:53:05 2022 +0800
[FIX-9471][Script] fix run install.sh error (#9472)
---
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[@]}