Skip to content

Commit

Permalink
Remove shouldHostShuffleServiceIfEnabled
Browse files Browse the repository at this point in the history
  • Loading branch information
aarondav committed May 8, 2015
1 parent e901eb2 commit a5d9432
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,7 @@ private[deploy]
class ExternalShuffleService(sparkConf: SparkConf, securityManager: SecurityManager)
extends Logging {

// Check both if shuffle service is enabled, and that the worker should actually host the
// shuffle service in that case. (The latter is currently only used for testing.)
private val enabled = sparkConf.getBoolean("spark.shuffle.service.enabled", false) &&
sparkConf.getBoolean("spark.worker.shouldHostShuffleServiceIfEnabled", true)
private val enabled = sparkConf.getBoolean("spark.shuffle.service.enabled", false)
private val port = sparkConf.getInt("spark.shuffle.service.port", 7337)
private val useSasl: Boolean = securityManager.isAuthenticationEnabled()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ class LocalSparkCluster(
logInfo("Starting a local Spark cluster with " + numWorkers + " workers.")

// Disable REST server on Master in this mode unless otherwise specified
val _conf = conf.clone().setIfMissing("spark.master.rest.enabled", "false")
val _conf = conf.clone()
.setIfMissing("spark.master.rest.enabled", "false")
.setIfMissing("spark.shuffle.service.enabled", "false")

/* Start the Master */
val (masterSystem, masterPort, _, _) = Master.startSystemAndActor(localHostname, 0, 0, _conf)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@ class ExternalShuffleServiceSuite extends ShuffleSuite with BeforeAndAfterAll {
conf.set("spark.shuffle.manager", "sort")
conf.set("spark.shuffle.service.enabled", "true")
conf.set("spark.shuffle.service.port", server.getPort.toString)

// local-cluster mode starts a Worker which would start its own shuffle service without this:
conf.set("spark.worker.shouldHostShuffleServiceIfEnabled", "false")
}

override def afterAll() {
Expand Down

0 comments on commit a5d9432

Please sign in to comment.