Skip to content

Commit

Permalink
[chore](thirdparty)We need to issue an error when starting FE without…
Browse files Browse the repository at this point in the history
… setting the Java home environment (#23943)



---------

Co-authored-by: yiguolei <[email protected]>
  • Loading branch information
2 people authored and xiaokang committed Sep 21, 2023
1 parent 6b96d0e commit 3b58950
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion bin/start_fe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,14 @@ if [[ -e "${DORIS_HOME}/bin/palo_env.sh" ]]; then
source "${DORIS_HOME}/bin/palo_env.sh"
fi

#Due to the machine not being configured with Java home, in this case, when FE cannot start, it is necessary to prompt an error message indicating that it has not yet been configured with Java home.

if [[ -z "${JAVA_HOME}" ]]; then
JAVA="$(command -v java)"
if ! command -v java &>/dev/null; then
JAVA=""
else
JAVA="$(command -v java)"
fi
else
JAVA="${JAVA_HOME}/bin/java"
fi
Expand Down

0 comments on commit 3b58950

Please sign in to comment.