From 2be71835639cdf359d033b0f0117fab25f255b11 Mon Sep 17 00:00:00 2001 From: Paul Zhang Date: Wed, 20 Apr 2022 11:46:42 +0800 Subject: [PATCH] [Bug][Standalone Server] Deduplicate the classpath jars in start.sh of the standalone server (#9583) --- .../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