This is an automated email from the ASF dual-hosted git repository.
kezhenxu94 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 2be7183563 [Bug][Standalone Server] Deduplicate the classpath jars in
start.sh of the standalone server (#9583)
2be7183563 is described below
commit 2be71835639cdf359d033b0f0117fab25f255b11
Author: Paul Zhang <[email protected]>
AuthorDate: Wed Apr 20 11:46:42 2022 +0800
[Bug][Standalone Server] Deduplicate the classpath jars in start.sh of the
standalone server (#9583)
---
dolphinscheduler-standalone-server/src/main/dist-bin/start.sh | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/dolphinscheduler-standalone-server/src/main/dist-bin/start.sh
b/dolphinscheduler-standalone-server/src/main/dist-bin/start.sh
index 019c61a7bf..5fef766e08 100755
--- a/dolphinscheduler-standalone-server/src/main/dist-bin/start.sh
+++ b/dolphinscheduler-standalone-server/src/main/dist-bin/start.sh
@@ -30,7 +30,10 @@ fi
CP=$DOLPHINSCHEDULER_HOME/libs/standalone-server/*
for d in alert-server api-server master-server worker-server; do
for f in $DOLPHINSCHEDULER_HOME/../$d/libs/*.jar; do
- CP=$CP:$f
+ JAR_FILE_NAME=${f##*/}
+ if [[ ! $CP =~ $JAR_FILE_NAME ]];then
+ CP=$CP:$f
+ fi
done
done