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

cambyzju pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-2.1 by this push:
     new 969f7532d64 [fix](deps) fix NoSuchMethodError: newInstanceFromKeytab 
when use kerberos (#37322)
969f7532d64 is described below

commit 969f7532d64b8bb2f679a8f66facd98cffb400d7
Author: Yulei-Yang <yulei.yang0...@gmail.com>
AuthorDate: Mon Jul 8 10:19:02 2024 +0800

    [fix](deps) fix NoSuchMethodError: newInstanceFromKeytab when use kerberos 
(#37322)
---
 build.sh                       | 2 ++
 thirdparty/build-thirdparty.sh | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/build.sh b/build.sh
index efa808652b6..6cb08cdefe2 100755
--- a/build.sh
+++ b/build.sh
@@ -662,6 +662,8 @@ if [[ "${BUILD_SPARK_DPP}" -eq 1 ]]; then
 fi
 
 if [[ "${OUTPUT_BE_BINARY}" -eq 1 ]]; then
+    # need remove old version hadoop jars if $DORIS_OUTPUT be used multiple 
times, otherwise will cause jar conflict
+    rm -rf "${DORIS_OUTPUT}/be/lib/hadoop_hdfs"
     install -d "${DORIS_OUTPUT}/be/bin" \
         "${DORIS_OUTPUT}/be/conf" \
         "${DORIS_OUTPUT}/be/lib" \
diff --git a/thirdparty/build-thirdparty.sh b/thirdparty/build-thirdparty.sh
index f17af7571bb..2df09895d08 100755
--- a/thirdparty/build-thirdparty.sh
+++ b/thirdparty/build-thirdparty.sh
@@ -1673,6 +1673,8 @@ build_hadoop_libs() {
     echo "THIRDPARTY_INSTALLED=${TP_INSTALL_DIR}" >env.sh
     ./build.sh
 
+    rm -rf "${TP_INSTALL_DIR}/include/hadoop_hdfs/"
+    rm -rf "${TP_INSTALL_DIR}/lib/hadoop_hdfs/"
     mkdir -p "${TP_INSTALL_DIR}/include/hadoop_hdfs/"
     mkdir -p "${TP_INSTALL_DIR}/lib/hadoop_hdfs/"
     cp -r ./hadoop-dist/target/hadoop-libhdfs-3.3.6/* 
"${TP_INSTALL_DIR}/lib/hadoop_hdfs/"


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

Reply via email to