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