We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e24d3a9 commit 48cd05cCopy full SHA for 48cd05c
core/src/test/scala/org/apache/spark/DriverSuite.scala
@@ -50,7 +50,10 @@ class DriverSuite extends FunSuite with Timeouts {
50
object DriverWithoutCleanup {
51
def main(args: Array[String]) {
52
Utils.configTestLog4j("INFO")
53
- val sc = new SparkContext(args(0), "DriverWithoutCleanup")
+ // Bind the web UI to an ephemeral port in order to avoid conflicts with other tests running on
54
+ // the same machine (we shouldn't just disable the UI here, since that might mask bugs):
55
+ val conf = new SparkConf().set("spark.ui.port", "0")
56
+ val sc = new SparkContext(args(0), "DriverWithoutCleanup", conf)
57
sc.parallelize(1 to 100, 4).count()
58
}
59
0 commit comments