You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by do...@apache.org on 2019/12/07 20:06:49 UTC

[spark] branch branch-2.4 updated: [SPARK-30163][INFRA] Use Google Maven mirror in GitHub Action

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

dongjoon pushed a commit to branch branch-2.4
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/branch-2.4 by this push:
     new 89d0f7c  [SPARK-30163][INFRA] Use Google Maven mirror in GitHub Action
89d0f7c is described below

commit 89d0f7c39669915038e70af572b61957b489b2f5
Author: Dongjoon Hyun <dh...@apple.com>
AuthorDate: Sat Dec 7 12:04:10 2019 -0800

    [SPARK-30163][INFRA] Use Google Maven mirror in GitHub Action
    
    This PR aims to use [Google Maven mirror](https://cloudplatform.googleblog.com/2015/11/faster-builds-for-Java-developers-with-Maven-Central-mirror.html) in `GitHub Action` jobs to improve the stability.
    
    ```xml
    <settings>
      <mirrors>
        <mirror>
          <id>google-maven-central</id>
          <name>GCS Maven Central mirror</name>
          <url>https://maven-central.storage-download.googleapis.com/repos/central/data/</url>
          <mirrorOf>central</mirrorOf>
        </mirror>
      </mirrors>
    </settings>
    ```
    
    Although we added Maven cache inside `GitHub Action`, the timeouts happen too frequently during access `artifact descriptor`.
    
    ```
    [ERROR] Failed to execute goal on project spark-mllib_2.12:
    ...
    Failed to read artifact descriptor for ...
    ...
    Connection timed out (Read failed) -> [Help 1]
    ```
    
    No.
    
    This PR is irrelevant to Jenkins.
    
    This is tested on the personal repository first. `GitHub Action` of this PR should pass.
    - https://github.com/dongjoon-hyun/spark/pull/11
    
    Closes #26793 from dongjoon-hyun/SPARK-30163.
    
    Authored-by: Dongjoon Hyun <dh...@apple.com>
    Signed-off-by: Dongjoon Hyun <dh...@apple.com>
    (cherry picked from commit 1068b8b24910eec8122bf7fa4748a101becf0d2b)
    Signed-off-by: Dongjoon Hyun <dh...@apple.com>
---
 .github/workflows/branch-2.4.yml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/.github/workflows/branch-2.4.yml b/.github/workflows/branch-2.4.yml
index 94088c3..942e362 100644
--- a/.github/workflows/branch-2.4.yml
+++ b/.github/workflows/branch-2.4.yml
@@ -50,6 +50,7 @@ jobs:
       run: |
         export MAVEN_OPTS="-Xmx2g -XX:ReservedCodeCacheSize=512m -Dorg.slf4j.simpleLogger.defaultLogLevel=WARN"
         export MAVEN_CLI_OPTS="--no-transfer-progress"
+        echo "<settings><mirrors><mirror><id>google-maven-central</id><name>GCS Maven Central mirror</name><url>https://maven-central.storage-download.googleapis.com/repos/central/data/</url><mirrorOf>central</mirrorOf></mirror></mirrors></settings>" > ~/.m2/settings.xml
         ./build/mvn $MAVEN_CLI_OPTS -DskipTests -Pyarn -Pmesos -Pkubernetes -Phive -Phive-thriftserver -Pscala-${{ matrix.scala }} -P${{ matrix.hadoop }} -Phadoop-cloud install
         rm -rf ~/.m2/repository/org/apache/spark
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org