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:59:14 UTC

[spark] branch branch-2.4 updated: [SPARK-30163][INFRA][FOLLOWUP] Make `.m2` directory for cold start without cache

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 0884766  [SPARK-30163][INFRA][FOLLOWUP] Make `.m2` directory for cold start without cache
0884766 is described below

commit 088476675869a3bafad1aad886f140c6ad07ad58
Author: Dongjoon Hyun <dh...@apple.com>
AuthorDate: Sat Dec 7 12:58:00 2019 -0800

    [SPARK-30163][INFRA][FOLLOWUP] Make `.m2` directory for cold start without cache
    
    ### What changes were proposed in this pull request?
    
    This PR is a follow-up of https://github.com/apache/spark/pull/26793 and aims to initialize `~/.m2` directory.
    
    ### Why are the changes needed?
    
    In case of cache reset, `~/.m2` directory doesn't exist. It causes a failure.
    - `master` branch has a cache as of now. So, we missed this.
    - `branch-2.4` has no cache as of now, and we hit this failure.
    
    ### Does this PR introduce any user-facing change?
    
    No.
    
    ### How was this patch tested?
    
    This PR is tested against personal `branch-2.4`.
    - https://github.com/dongjoon-hyun/spark/pull/12
    
    Closes #26794 from dongjoon-hyun/SPARK-30163-2.
    
    Authored-by: Dongjoon Hyun <dh...@apple.com>
    Signed-off-by: Dongjoon Hyun <dh...@apple.com>
    (cherry picked from commit 16f1b23d75c0b44aac61111bfb2ae9bb0f3fab68)
    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 942e362..2c734f9 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"
+        mkdir -p ~/.m2
         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