Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
Make python tests explicitly bind the driver to localhost
Browse files Browse the repository at this point in the history
This addresses a problem with changing network contexts, and Spark
getting confused over which hostname to attempt to bind to.
  • Loading branch information
johngrimes committed Nov 11, 2019
1 parent 01b1c58 commit 040487d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions python/tests/test_bunsen_r4.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def spark_session(request):
spark = SparkSession.builder \
.appName('bunsen-test') \
.master('local[2]') \
.config('spark.driver.host', 'localhost') \
.config('spark.jars', shaded_jar) \
.config('hive.exec.dynamic.partition.mode', 'nonstrict') \
.config('spark.sql.warehouse.dir', mkdtemp()) \
Expand Down
1 change: 1 addition & 0 deletions python/tests/test_bunsen_stu3.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def spark_session(request):
spark = SparkSession.builder \
.appName('bunsen-test') \
.master('local[2]') \
.config('spark.driver.host', 'localhost') \
.config('spark.jars', shaded_jar) \
.config('hive.exec.dynamic.partition.mode', 'nonstrict') \
.config('spark.sql.warehouse.dir', mkdtemp()) \
Expand Down

0 comments on commit 040487d

Please sign in to comment.