Unverified Commit 3da80733 authored by Zzm0809's avatar Zzm0809 Committed by GitHub

[Optimization] Optimization start scripts (#3296)

parent d3e0a357
...@@ -12,7 +12,7 @@ JAR_NAME="dinky-admin" ...@@ -12,7 +12,7 @@ JAR_NAME="dinky-admin"
if [ -z "${FLINK_VERSION}" ]; then if [ -z "${FLINK_VERSION}" ]; then
# Obtain the Flink version under EXTENDSHOME, only perform recognition and do not perform any other operations, for prompt purposes # Obtain the Flink version under EXTENDSHOME, only perform recognition and do not perform any other operations, for prompt purposes
FLINK_VERSION_SCAN=$(ls ${EXTENDS_HOME} | grep flink | awk -F 'flink' '{print $2}') FLINK_VERSION_SCAN=$(ll ${EXTENDS_HOME} | grep '^d' | grep flink | awk -F 'flink' '{print $2}')
# If FLINK_VERSION-SCAN is not empty, assign FLINK_VERSION-SCAN to FLINK_VERSION # If FLINK_VERSION-SCAN is not empty, assign FLINK_VERSION-SCAN to FLINK_VERSION
if [ -n "${FLINK_VERSION_SCAN}" ]; then if [ -n "${FLINK_VERSION_SCAN}" ]; then
FLINK_VERSION=${FLINK_VERSION_SCAN} FLINK_VERSION=${FLINK_VERSION_SCAN}
...@@ -29,7 +29,7 @@ assertIsInputVersion() { ...@@ -29,7 +29,7 @@ assertIsInputVersion() {
} }
# Use FLINK_HOME: # Use FLINK_HOME:
CLASS_PATH="${APP_HOME}:${APP_HOME}/lib/*:${APP_HOME}/config:${EXTENDS_HOME}/*:${EXTENDS_HOME}/flink${FLINK_VERSION}/dinky/*:${EXTENDS_HOME}/flink${FLINK_VERSION}/*" CLASS_PATH="${APP_HOME}:${APP_HOME}/lib/*:${APP_HOME}/config:${EXTENDS_HOME}/*:${APP_HOME}/customJar/*:${EXTENDS_HOME}/flink${FLINK_VERSION}/dinky/*:${EXTENDS_HOME}/flink${FLINK_VERSION}/*"
PID_FILE="dinky.pid" PID_FILE="dinky.pid"
# JMX path # JMX path
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment