This is an automated email from the ASF dual-hosted git repository.
nicholasjiang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/paimon-webui.git
The following commit(s) were added to refs/heads/main by this push:
new 2db803fb [Bugfix] Fix getting system environment variables error (#521)
2db803fb is described below
commit 2db803fb81fa16c8967e46100984d81e87f45cc0
Author: hiliuxg <[email protected]>
AuthorDate: Wed Aug 14 11:13:15 2024 +0800
[Bugfix] Fix getting system environment variables error (#521)
---
paimon-web-server/src/main/bin/env.sh | 2 +-
paimon-web-server/src/main/bin/start.sh | 6 ++++++
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/paimon-web-server/src/main/bin/env.sh
b/paimon-web-server/src/main/bin/env.sh
index da7a989a..914d8433 100644
--- a/paimon-web-server/src/main/bin/env.sh
+++ b/paimon-web-server/src/main/bin/env.sh
@@ -20,7 +20,7 @@
FLINK_HOME=${FLINK_HOME:-""}
# Set the ACTION_JAR_PATH to execute the paimon action job.
-ACTION_JAR_PATH=
+ACTION_JAR_PATH=${ACTION_JAR_PATH:-""}
JVM_ARGS="-server"
diff --git a/paimon-web-server/src/main/bin/start.sh
b/paimon-web-server/src/main/bin/start.sh
index 462922c5..2e14da11 100644
--- a/paimon-web-server/src/main/bin/start.sh
+++ b/paimon-web-server/src/main/bin/start.sh
@@ -64,12 +64,18 @@ fi
if [ -z "$JAVA_HOME" ]; then
echo "JAVA_HOME is null, exit..."
exit 1
+else
+ export JAVA_HOME=$JAVA_HOME
fi
if [ -z "$FLINK_HOME" ]; then
echo "FLINK_HOME is null, CDC cannot be used normally!"
+else
+ export FLINK_HOME=$FLINK_HOME
fi
if [ -z "$ACTION_JAR_PATH" ]; then
echo "ACTION_JAR_PATH is null, CDC cannot be used normally!"
+else
+ export ACTION_JAR_PATH=$ACTION_JAR_PATH
fi