[Bug][Standalone Server] Deduplicate the classpath jars in start.sh of the standalone server (#9583)

This commit is contained in:
Paul Zhang 2022-04-20 11:46:42 +08:00 committed by GitHub
parent 9964c4c1e1
commit 2be7183563
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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