From aa4ff99354a7b906541ce186e65c069c9429c300 Mon Sep 17 00:00:00 2001 From: jialiang Date: Sat, 27 Jan 2024 15:59:05 +0800 Subject: [PATCH] [Optimization][script] Optimizing the classpath in the Dinky startup script #3076 --- script/bin/auto.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/script/bin/auto.sh b/script/bin/auto.sh index 8b8e81aa6e..992239f399 100644 --- a/script/bin/auto.sh +++ b/script/bin/auto.sh @@ -4,13 +4,13 @@ FLINK_VERSION=${2:-1.16} JAR_NAME="dinky-admin" -# Use FLINK_HOME: -CLASS_PATH=".:./lib/*:config:./extends/*:./plugins/*:./customJar/*:./plugins/flink${FLINK_VERSION}/dinky/*:./plugins/flink${FLINK_VERSION}/*:./extends/flink${FLINK_VERSION}/dinky/*:./extends/flink${FLINK_VERSION}/*" +APP_HOME="$(cd `dirname $0`; pwd)" +# Use FLINK_HOME: +CLASS_PATH="${APP_HOME}:${APP_HOME}/lib/*:${APP_HOME}/config:${APP_HOME}/extends/*:${APP_HOME}/plugins/*:${APP_HOME}/customJar/*:${APP_HOME}/plugins/flink${FLINK_VERSION}/dinky/*:${APP_HOME}/plugins/flink${FLINK_VERSION}/*:${APP_HOME}/extends/flink${FLINK_VERSION}/dinky/*:${APP_HOME}/extends/flink${FLINK_VERSION}/*" PID_FILE="dinky.pid" # JMX path -APP_HOME="$(cd `dirname $0`; pwd)" JMX="-javaagent:$APP_HOME/lib/jmx_prometheus_javaagent-0.20.0.jar=10087:$APP_HOME/config/jmx/jmx_exporter_config.yaml" # Check whether the pid path exists