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

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

The following commit(s) were added to refs/heads/branch-2.0 by this push:
     new 039c245a401 [fix](deps) fix NoSuchMethodError: newInstanceFromKeytab 
issue when use kerberos (#37323)
039c245a401 is described below

commit 039c245a4013563bc11dd1d8ae2966c44d8b44e4
Author: Yulei-Yang <yulei.yang0...@gmail.com>
AuthorDate: Mon Jul 8 10:19:18 2024 +0800

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

diff --git a/build.sh b/build.sh
index 43ae8d8d2e8..f216dfe44b3 100755
--- a/build.sh
+++ b/build.sh
@@ -631,6 +631,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 aeb4e580e00..cd9c655fedc 100755
--- a/thirdparty/build-thirdparty.sh
+++ b/thirdparty/build-thirdparty.sh
@@ -1624,6 +1624,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