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

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


The following commit(s) were added to refs/heads/master by this push:
     new 47a1091fa [KYUUBI #4279] Use new Apache 'closer.lua' syntax for 
kyuubi-download to obtain engine
47a1091fa is described below

commit 47a1091fa872bff91a82a390acfb18f92eba97fb
Author: yuqingyang <[email protected]>
AuthorDate: Wed Jan 24 12:46:53 2024 +0800

    [KYUUBI #4279] Use new Apache 'closer.lua' syntax for kyuubi-download to 
obtain engine
    
    …ne archives
    
    # :mag: Description
    ## Issue References [4279](https://github.com/apache/kyuubi/issues/4279)πŸ”—
    
    This pull request fixes #
    
    ## Describe Your Solution πŸ”§
    
    Use new Apache 'closer.lua' syntax for kyuubi-download to obtain engine
    
    ## Types of changes :bookmark:
    
    - [x] New feature (non-breaking change which adds functionality)
    
    ## Test Plan πŸ§ͺ
    
    #### Behavior Without This Pull Request :coffin:
    
    #### Behavior With This Pull Request :tada:
    
    #### Related Unit Tests
    
    ---
    
    # Checklist πŸ“
    
    - [ ] This patch was not authored or co-authored using [Generative 
Tooling](https://www.apache.org/legal/generative-tooling.html)
    
    **Be nice. Be informative.**
    
    Closes #6009 from sincewhen/master.
    
    Closes #4279
    
    2152a9b92 [yuqingyang] Use new Apache 'closer.lua' syntax for 
kyuubi-download to obtain engine archives
    
    Authored-by: yuqingyang <[email protected]>
    Signed-off-by: Kent Yao <[email protected]>
---
 docs/contributing/code/building.md | 2 +-
 externals/kyuubi-download/pom.xml  | 6 +++---
 pom.xml                            | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/docs/contributing/code/building.md 
b/docs/contributing/code/building.md
index bfa6a46ca..049d7afb0 100644
--- a/docs/contributing/code/building.md
+++ b/docs/contributing/code/building.md
@@ -84,7 +84,7 @@ For the Scala version for Spark engines, the server will look 
up the `SPARK_SCAL
 
 ## Building With Apache dlcdn Site
 
-By default, we use `https://archive.apache.org/dist/` to download the built-in 
release packages of engines,
+By default, we use `closer.lua` to download the built-in release packages of 
engines,
 such as Spark or Flink.
 But sometimes, you may find it hard to reach, or the download speed is too 
slow,
 then you can define the `apache.archive.dist` by `-Pmirror-cdn` to accelerate 
to download speed.
diff --git a/externals/kyuubi-download/pom.xml 
b/externals/kyuubi-download/pom.xml
index b21e3e5a2..e9ac58629 100644
--- a/externals/kyuubi-download/pom.xml
+++ b/externals/kyuubi-download/pom.xml
@@ -51,7 +51,7 @@
                         <phase>compile</phase>
                         <configuration>
                             <skip>${spark.archive.download.skip}</skip>
-                            
<url>${spark.archive.mirror}/${spark.archive.name}</url>
+                            
<url>${spark.archive.mirror}/${spark.archive.name}?action=download</url>
                         </configuration>
                     </execution>
                     <execution>
@@ -62,7 +62,7 @@
                         <phase>compile</phase>
                         <configuration>
                             <skip>${flink.archive.download.skip}</skip>
-                            
<url>${flink.archive.mirror}/${flink.archive.name}</url>
+                            
<url>${flink.archive.mirror}/${flink.archive.name}?action=download</url>
                         </configuration>
                     </execution>
                     <execution>
@@ -73,7 +73,7 @@
                         <phase>compile</phase>
                         <configuration>
                             <skip>${hive.archive.download.skip}</skip>
-                            
<url>${hive.archive.mirror}/${hive.archive.name}</url>
+                            
<url>${hive.archive.mirror}/${hive.archive.name}?action=download</url>
                         </configuration>
                     </execution>
                 </executions>
diff --git a/pom.xml b/pom.xml
index 567eb382d..a04c34ff3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -123,7 +123,7 @@
         <!-- Please don't upgrade the version to 4.10+, it depends on JDK 11 
-->
         <antlr4.version>4.9.3</antlr4.version>
         <antlr.st4.version>4.3.4</antlr.st4.version>
-        
<apache.archive.dist>https://archive.apache.org/dist</apache.archive.dist>
+        
<apache.archive.dist>http://www.apache.org/dyn/closer.lua</apache.archive.dist>
         <atlas.version>2.3.0</atlas.version>
         <bouncycastle.version>1.67</bouncycastle.version>
         <codahale.metrics.version>4.2.23</codahale.metrics.version>

Reply via email to