Skip to content

Commit 2f22c1a

Browse files
wangyumHyukjinKwon
authored andcommitted
[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 <yumwang@ebay.com> Signed-off-by: Dongjoon Hyun <dhyun@apple.com> (cherry picked from commit 9663c40) Signed-off-by: HyukjinKwon <gurwls223@apache.org>
1 parent 7c1177c commit 2f22c1a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/build_and_test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ jobs:
7979
# GitHub Actions' default miniconda to use in pip packaging test.
8080
CONDA_PREFIX: /usr/share/miniconda
8181
GITHUB_PREV_SHA: ${{ github.event.before }}
82+
SPARK_LOCAL_IP: 127.0.0.1
8283
steps:
8384
- name: Checkout Spark repository
8485
uses: actions/checkout@v2
@@ -162,6 +163,7 @@ jobs:
162163
# GitHub Actions' default miniconda to use in pip packaging test.
163164
CONDA_PREFIX: /usr/share/miniconda
164165
GITHUB_PREV_SHA: ${{ github.event.before }}
166+
SPARK_LOCAL_IP: 127.0.0.1
165167
steps:
166168
- name: Checkout Spark repository
167169
uses: actions/checkout@v2
@@ -223,6 +225,7 @@ jobs:
223225
HADOOP_PROFILE: hadoop2.7
224226
HIVE_PROFILE: hive2.3
225227
GITHUB_PREV_SHA: ${{ github.event.before }}
228+
SPARK_LOCAL_IP: 127.0.0.1
226229
steps:
227230
- name: Checkout Spark repository
228231
uses: actions/checkout@v2

0 commit comments

Comments
 (0)