Skip to content

Commit 9663c40

Browse files
wangyumdongjoon-hyun
authored andcommitted
[SPARK-35002][INFRA] Fix the java.net.BindException when testing with Github Action
### What changes were proposed in this pull request? 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 ### Why are the changes needed? Fix test framework. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? 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>
1 parent ed3f103 commit 9663c40

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/benchmark.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ jobs:
4747
SPARK_BENCHMARK_NUM_SPLITS: ${{ github.event.inputs.num-splits }}
4848
SPARK_BENCHMARK_CUR_SPLIT: ${{ matrix.split }}
4949
SPARK_GENERATE_BENCHMARK_FILES: 1
50+
SPARK_LOCAL_IP: 127.0.0.1
5051
steps:
5152
- name: Checkout Spark repository
5253
uses: actions/checkout@v2

.github/workflows/build_and_test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ jobs:
8383
CONDA_PREFIX: /usr/share/miniconda
8484
GITHUB_PREV_SHA: ${{ github.event.before }}
8585
GITHUB_INPUT_BRANCH: ${{ github.event.inputs.target }}
86+
SPARK_LOCAL_IP: 127.0.0.1
8687
steps:
8788
- name: Checkout Spark repository
8889
uses: actions/checkout@v2
@@ -171,6 +172,7 @@ jobs:
171172
CONDA_PREFIX: /usr/share/miniconda
172173
GITHUB_PREV_SHA: ${{ github.event.before }}
173174
GITHUB_INPUT_BRANCH: ${{ github.event.inputs.target }}
175+
SPARK_LOCAL_IP: 127.0.0.1
174176
steps:
175177
- name: Checkout Spark repository
176178
uses: actions/checkout@v2
@@ -238,6 +240,7 @@ jobs:
238240
HIVE_PROFILE: hive2.3
239241
GITHUB_PREV_SHA: ${{ github.event.before }}
240242
GITHUB_INPUT_BRANCH: ${{ github.event.inputs.target }}
243+
SPARK_LOCAL_IP: 127.0.0.1
241244
steps:
242245
- name: Checkout Spark repository
243246
uses: actions/checkout@v2
@@ -468,6 +471,8 @@ jobs:
468471
tpcds-1g:
469472
name: Run TPC-DS queries with SF=1
470473
runs-on: ubuntu-20.04
474+
env:
475+
SPARK_LOCAL_IP: 127.0.0.1
471476
steps:
472477
- name: Checkout Spark repository
473478
uses: actions/checkout@v2

0 commit comments

Comments
 (0)