This is an automated email from the ASF dual-hosted git repository.

gabriellee pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 0daebde223 [fix](java-udf) Disable the corresponding configuration if 
building BE without Java UDF support (#14303)
0daebde223 is described below

commit 0daebde223a5541c35733096649adbafe55db4c8
Author: Adonis Ling <adonis0...@gmail.com>
AuthorDate: Tue Nov 29 10:12:00 2022 +0800

    [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" <<EOF
+
+# Java UDF support
+enable_java_support = false
+EOF
+    fi
+
     # Fix Killed: 9 error on MacOS (arm64).
     # See: 
https://stackoverflow.com/questions/67378106/mac-m1-cping-binary-over-another-results-in-crash
     rm -f "${DORIS_OUTPUT}/be/lib/doris_be"


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to