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

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


The following commit(s) were added to refs/heads/branch-4.0 by this push:
     new db6ba9f6f3b branch-4.0: [improvement](docker) Make thirdparty jar 
download mirror… (#65039)
db6ba9f6f3b is described below

commit db6ba9f6f3beb8efdb9c5bc2b2c2a161faa107e7
Author: zgxme <[email protected]>
AuthorDate: Wed Jul 1 11:27:13 2026 +0800

    branch-4.0: [improvement](docker) Make thirdparty jar download mirror… 
(#65039)
    
    ### What problem does this PR solve?
    
    bp https://github.com/apache/doris/pull/62376
---
 docker/thirdparties/custom_settings.env              | 4 ++++
 docker/thirdparties/docker-compose/hudi/hudi.env.tpl | 8 ++++----
 docker/thirdparties/run-thirdparties-docker.sh       | 4 ++++
 3 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/docker/thirdparties/custom_settings.env 
b/docker/thirdparties/custom_settings.env
index 97545885d76..4ed5c77f90f 100644
--- a/docker/thirdparties/custom_settings.env
+++ b/docker/thirdparties/custom_settings.env
@@ -24,3 +24,7 @@ CONTAINER_UID="doris--"
 export s3Endpoint="oss-cn-hongkong.aliyuncs.com"
 export s3BucketName="doris-regression-hk"
 export OSSBucket="doris-regression-bj"
+
+# Optional Maven repository override for thirdparty jar downloads.
+# export MAVEN_REPOSITORY_URL="https://maven.aliyun.com/repository/central";
+export 
MAVEN_REPOSITORY_URL="${MAVEN_REPOSITORY_URL:-https://repo1.maven.org/maven2}";
diff --git a/docker/thirdparties/docker-compose/hudi/hudi.env.tpl 
b/docker/thirdparties/docker-compose/hudi/hudi.env.tpl
index 022909856d8..e04012010e9 100644
--- a/docker/thirdparties/docker-compose/hudi/hudi.env.tpl
+++ b/docker/thirdparties/docker-compose/hudi/hudi.env.tpl
@@ -33,18 +33,18 @@ HUDI_BUCKET=datalake
 # Hudi 1.0.2 supports Spark 3.5.x (default), 3.4.x, and 3.3.x
 # Using Spark 3.5 bundle to match Spark 3.5.7 image (default build)
 HUDI_BUNDLE_VERSION=1.0.2
-HUDI_BUNDLE_URL=https://repo1.maven.org/maven2/org/apache/hudi/hudi-spark3.5-bundle_2.12/1.0.2/hudi-spark3.5-bundle_2.12-1.0.2.jar
+HUDI_BUNDLE_URL=${HUDI_BUNDLE_URL}
 
 # Hadoop AWS S3A filesystem (required for S3A support)
 # Note: Version must match Spark's built-in Hadoop version (3.3.4 for Spark 
3.5.7)
 HADOOP_AWS_VERSION=3.3.4
-HADOOP_AWS_URL=https://repo1.maven.org/maven2/org/apache/hadoop/hadoop-aws/3.3.4/hadoop-aws-3.3.4.jar
+HADOOP_AWS_URL=${HADOOP_AWS_URL}
 
 # AWS Java SDK Bundle v1 (required for Hadoop 3.3.4 S3A support)
 # Note: Hadoop 3.3.x uses AWS SDK v1, version 1.12.x is recommended
 AWS_SDK_BUNDLE_VERSION=1.12.262
-AWS_SDK_BUNDLE_URL=https://repo1.maven.org/maven2/com/amazonaws/aws-java-sdk-bundle/1.12.262/aws-java-sdk-bundle-1.12.262.jar
+AWS_SDK_BUNDLE_URL=${AWS_SDK_BUNDLE_URL}
 
 # PostgreSQL JDBC driver (required for Hive Metastore connection)
 POSTGRESQL_JDBC_VERSION=42.7.1
-POSTGRESQL_JDBC_URL=https://repo1.maven.org/maven2/org/postgresql/postgresql/42.7.1/postgresql-42.7.1.jar
+POSTGRESQL_JDBC_URL=${POSTGRESQL_JDBC_URL}
diff --git a/docker/thirdparties/run-thirdparties-docker.sh 
b/docker/thirdparties/run-thirdparties-docker.sh
index f1ebbcde5d3..d806453949d 100755
--- a/docker/thirdparties/run-thirdparties-docker.sh
+++ b/docker/thirdparties/run-thirdparties-docker.sh
@@ -440,6 +440,10 @@ start_iceberg() {
 start_hudi() {
     HUDI_DIR=${ROOT}/docker-compose/hudi
     export CONTAINER_UID=${CONTAINER_UID}
+    export 
HUDI_BUNDLE_URL="${HUDI_BUNDLE_URL:-${MAVEN_REPOSITORY_URL}/org/apache/hudi/hudi-spark3.5-bundle_2.12/1.0.2/hudi-spark3.5-bundle_2.12-1.0.2.jar}"
+    export 
HADOOP_AWS_URL="${HADOOP_AWS_URL:-${MAVEN_REPOSITORY_URL}/org/apache/hadoop/hadoop-aws/3.3.4/hadoop-aws-3.3.4.jar}"
+    export 
AWS_SDK_BUNDLE_URL="${AWS_SDK_BUNDLE_URL:-${MAVEN_REPOSITORY_URL}/com/amazonaws/aws-java-sdk-bundle/1.12.262/aws-java-sdk-bundle-1.12.262.jar}"
+    export 
POSTGRESQL_JDBC_URL="${POSTGRESQL_JDBC_URL:-${MAVEN_REPOSITORY_URL}/org/postgresql/postgresql/42.7.1/postgresql-42.7.1.jar}"
     envsubst <"${HUDI_DIR}"/hudi.env.tpl >"${HUDI_DIR}"/hudi.env
     set -a
     . "${HUDI_DIR}"/hudi.env


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to