From 0daebde223a5541c35733096649adbafe55db4c8 Mon Sep 17 00:00:00 2001 From: Adonis Ling Date: Tue, 29 Nov 2022 10:12:00 +0800 Subject: [PATCH] [fix](java-udf) Disable the corresponding configuration if building BE without Java UDF support (#14303) --- build.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index c1b727c269..b55aa7a7e1 100755 --- a/build.sh +++ b/build.sh @@ -307,7 +307,7 @@ if [[ "${BUILD_JAVA_UDF}" -eq 1 && "$(uname -s)" == 'Darwin' ]]; then fi if [[ -n "${CAUSE}" ]]; then - echo -e "\033[33;1mWARNNING: \033[37;1mSkip building with JAVA UDF due to ${CAUSE}.\033[0m" + echo -e "\033[33;1mWARNNING: \033[37;1mSkip building with Java UDF due to ${CAUSE}.\033[0m" BUILD_JAVA_UDF=0 fi fi @@ -515,6 +515,15 @@ if [[ "${BUILD_BE}" -eq 1 ]]; then cp -r -p "${DORIS_HOME}/be/output/bin"/* "${DORIS_OUTPUT}/be/bin"/ cp -r -p "${DORIS_HOME}/be/output/conf"/* "${DORIS_OUTPUT}/be/conf"/ + if [[ "${BUILD_JAVA_UDF}" -eq 0 ]]; then + echo -e "\033[33;1mWARNNING: \033[37;1mDisable Java UDF support in be.conf due to the BE was built without Java UDF.\033[0m" + cat >>"${DORIS_OUTPUT}/be/conf/be.conf" <