xyfsjq commented on code in PR #23943:
URL: https://github.com/apache/doris/pull/23943#discussion_r1316606722


##########
bin/start_fe.sh:
##########
@@ -108,7 +108,12 @@ if [[ -e "${DORIS_HOME}/bin/palo_env.sh" ]]; then
 fi
 
 if [[ -z "${JAVA_HOME}" ]]; then
-    JAVA="$(command -v java)"
+    if ! command -v java &>/dev/null; then

Review Comment:
   Due to the customer's machine not being configured with Java home, starting 
FE will result in startup failure, no error prompts, and logs. In this case, 
when the FE cannot start, it is necessary to prompt an error message indicating 
that it has not yet configured Java home.
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to