Skip to content

Commit

Permalink
Avoid spaces in akka system name
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewor14 committed Aug 6, 2014
1 parent f644b55 commit 1c1b42e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/src/main/scala/org/apache/spark/SparkEnv.scala
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ object SparkEnv extends Logging {
}

val securityManager = new SecurityManager(conf)
val actorSystemName = if (isDriver) "driver actor" else "executor actor"
val actorSystemName = if (isDriver) "driver-actor" else "executor-actor"
val (actorSystem, boundPort) = AkkaUtils.createActorSystem(
actorSystemName, hostname, port, conf, securityManager)

Expand Down
2 changes: 1 addition & 1 deletion core/src/main/scala/org/apache/spark/util/AkkaUtils.scala
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ private[spark] object AkkaUtils extends Logging {
val startService: Int => (ActorSystem, Int) = { actualPort =>
doCreateActorSystem(name, host, actualPort, conf, securityManager)
}
Utils.startServiceOnPort(port, startService, name)
Utils.startServiceOnPort(port, startService, name.replaceAll("-", " "))
}

private def doCreateActorSystem(
Expand Down

0 comments on commit 1c1b42e

Please sign in to comment.