[fix](deps) fix NoSuchMethodError: newInstanceFromKeytab when use kerberos (#37322)

This commit is contained in:
Yulei-Yang
2024-07-08 10:19:02 +08:00
committed by GitHub
parent 97e4025ee0
commit 969f7532d6
2 changed files with 4 additions and 0 deletions

View File

@ -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" \

View File

@ -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/"