Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -927,8 +927,8 @@ private[deploy] object Master extends Logging {
webUiPort: Int,
conf: SparkConf): (ActorSystem, Int, Int, Option[Int]) = {
val securityMgr = new SecurityManager(conf)
val (actorSystem, boundPort) = AkkaUtils.createActorSystem(systemName, host, port, conf = conf,
securityManager = securityMgr)
val (actorSystem, boundPort) = AkkaUtils.createActorSystem(systemName, host, port,
conf.clone.set("spark.port.maxRetries", "0"), securityManager = securityMgr)
val actor = actorSystem.actorOf(
Props(classOf[Master], host, boundPort, webUiPort, securityMgr, conf), actorName)
val timeout = RpcUtils.askTimeout(conf)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ private[deploy] class StandaloneRestServer(

/** Start the server and return the bound port. */
def start(): Int = {
val (server, boundPort) = Utils.startServiceOnPort[Server](requestedPort, doStart, masterConf)
val (server, boundPort) = Utils.startServiceOnPort[Server](requestedPort, doStart,
masterConf.clone.set("spark.port.maxRetries", "0"))
_server = Some(server)
logInfo(s"Started REST server for submitting applications on port $boundPort")
boundPort
Expand Down