You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by gu...@apache.org on 2021/04/14 10:43:01 UTC

[spark] branch branch-3.1 updated: [SPARK-35002][INFRA] Fix the java.net.BindException when testing with Github Action

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

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


The following commit(s) were added to refs/heads/branch-3.1 by this push:
     new 06ce0ee  [SPARK-35002][INFRA] Fix the java.net.BindException when testing with Github Action
06ce0ee is described below

commit 06ce0eeea6b4b50fa2bfb9a9663b4f2bee3b7383
Author: Yuming Wang <yu...@ebay.com>
AuthorDate: Thu Apr 8 23:03:51 2021 -0700

    [SPARK-35002][INFRA] Fix the java.net.BindException when testing with Github Action
    
    This PR tries to fix the `java.net.BindException` when testing with Github Action:
    ```
    [info] org.apache.spark.sql.kafka010.producer.InternalKafkaProducerPoolSuite *** ABORTED *** (282 milliseconds)
    [info]   java.net.BindException: Cannot assign requested address: Service 'sparkDriver' failed after 100 retries (on a random free port)! Consider explicitly setting the appropriate binding address for the service 'sparkDriver' (for example spark.driver.bindAddress for SparkDriver) to the correct binding address.
    [info]   at sun.nio.ch.Net.bind0(Native Method)
    [info]   at sun.nio.ch.Net.bind(Net.java:461)
    [info]   at sun.nio.ch.Net.bind(Net.java:453)
    ```
    
    https://github.com/apache/spark/pull/32090/checks?check_run_id=2295418529
    
    Fix test framework.
    
    No.
    
    Test by Github Action.
    
    Closes #32096 from wangyum/SPARK_LOCAL_IP=localhost.
    
    Authored-by: Yuming Wang <yu...@ebay.com>
    Signed-off-by: Dongjoon Hyun <dh...@apple.com>
    (cherry picked from commit 9663c4061ae07634697345560c84359574a75692)
    Signed-off-by: HyukjinKwon <gu...@apache.org>
---
 .github/workflows/build_and_test.yml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml
index 7eab750..7f1d616 100644
--- a/.github/workflows/build_and_test.yml
+++ b/.github/workflows/build_and_test.yml
@@ -83,6 +83,7 @@ jobs:
       CONDA_PREFIX: /usr/share/miniconda
       GITHUB_PREV_SHA: ${{ github.event.before }}
       GITHUB_INPUT_BRANCH: ${{ github.event.inputs.target }}
+      SPARK_LOCAL_IP: 127.0.0.1
     steps:
     - name: Checkout Spark repository
       uses: actions/checkout@v2
@@ -170,6 +171,7 @@ jobs:
       CONDA_PREFIX: /usr/share/miniconda
       GITHUB_PREV_SHA: ${{ github.event.before }}
       GITHUB_INPUT_BRANCH: ${{ github.event.inputs.target }}
+      SPARK_LOCAL_IP: 127.0.0.1
     steps:
     - name: Checkout Spark repository
       uses: actions/checkout@v2
@@ -238,6 +240,7 @@ jobs:
       HIVE_PROFILE: hive2.3
       GITHUB_PREV_SHA: ${{ github.event.before }}
       GITHUB_INPUT_BRANCH: ${{ github.event.inputs.target }}
+      SPARK_LOCAL_IP: 127.0.0.1
     steps:
     - name: Checkout Spark repository
       uses: actions/checkout@v2

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