Skip to content

Commit

Permalink
Merge pull request #521 from s22s/feature/test-max-failures
Browse files Browse the repository at this point in the history
Set spark master with spark.task.maxFailures in test
  • Loading branch information
vpipkt authored Nov 5, 2020
2 parents 19191ba + 8f9e746 commit 68ebe65
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ trait TestEnvironment extends FunSpec
outputDir
}

def sparkMaster: String = "local[*]"
// allow 2 retries, should stabilize CI builds. https://spark.apache.org/docs/2.4.7/submitting-applications.html#master-urls
def sparkMaster: String = "local[*, 2]"

def additionalConf = new SparkConf(false)

Expand Down
1 change: 1 addition & 0 deletions pyrasterframes/src/main/python/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ def pdir(curr):

def spark_test_session():
spark = create_rf_spark_session(**{
'spark.master': 'local[*, 2]',
'spark.ui.enabled': 'false',
'spark.app.name': app_name
})
Expand Down

0 comments on commit 68ebe65

Please sign in to comment.