Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Enhancement] show_fe_verion adds friendly prompts #35867

Merged
merged 3 commits into from
Nov 28, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions bin/show_fe_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ curdir=`cd "$curdir"; pwd`
export STARROCKS_HOME=`cd "$curdir/.."; pwd`
export PID_DIR=`cd "$curdir"; pwd`
export LOG_DIR=${STARROCKS_HOME}/log
source common.sh
Astralidea marked this conversation as resolved.
Show resolved Hide resolved

# java
if [ "$JAVA_HOME" = "" ]; then
Expand All @@ -30,6 +31,13 @@ if [ "$JAVA_HOME" = "" ]; then
fi
JAVA=$JAVA_HOME/bin/java

JAVA_VERSION=$(jdk_version)
final_java_opt=$JAVA_OPTS
Astralidea marked this conversation as resolved.
Show resolved Hide resolved
if [[ "$JAVA_VERSION" -lt 11 ]]; then
echo "JDK $JAVA_VERSION is not supported, please use JDK 11 or 17"
exit -1
fi

# add libs to CLASSPATH
for f in $STARROCKS_HOME/lib/*.jar; do
CLASSPATH=$f:${CLASSPATH};
Expand Down