Skip to content

Commit

Permalink
Set spark.driver.bindAddress
Browse files Browse the repository at this point in the history
  • Loading branch information
EnricoMi committed Apr 9, 2021
1 parent ded5c64 commit 042be2b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ jobs:

- name: Integration Tests
env:
SPARK_LOCAL_IP: 127.0.0.1
SPARK_HOME: ${{ steps.params.outputs.home }}/spark
ARTIFACT_ID: ${{ steps.params.outputs.artifact-id }}
VERSION: ${{ steps.params.outputs.version }}
Expand Down
1 change: 1 addition & 0 deletions python/test/spark_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ def get_spark_config(path, dependencies) -> SparkConf:
master = 'local[2]'
conf = SparkConf().setAppName('unit test').setMaster(master)
return conf.setAll([
('spark.driver.bindAddress', '127.0.0.1'),
('spark.ui.showConsoleProgress', 'false'),
('spark.test.home', os.environ.get('SPARK_HOME')),
('spark.locality.wait', '0'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ trait SparkTestSession {
.builder()
.master(s"local[$cores]")
.appName("spark test example")
.config("spark.driver.bindAddress", "127.0.0.1")
.config("spark.sql.shuffle.partitions", 2)
.config("spark.local.dir", ".")
.getOrCreate()
Expand Down

0 comments on commit 042be2b

Please sign in to comment.