Skip to content

Commit

Permalink
SPARK-1176 Add port configuration for HttpBroadcast
Browse files Browse the repository at this point in the history
Uses spark.broadcast.port
  • Loading branch information
ash211 committed Jul 25, 2014
1 parent 49ee29b commit f34115d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ private[broadcast] object HttpBroadcast extends Logging {

private def createServer(conf: SparkConf) {
broadcastDir = Utils.createTempDir(Utils.getLocalDir(conf))
server = new HttpServer(broadcastDir, securityManager)
val broadcastListenPort: Int = conf.getInt("spark.broadcast.port", 0)
server = new HttpServer(broadcastDir, securityManager, broadcastListenPort)
server.start()
serverUri = server.uri
logInfo("Broadcast server started at " + serverUri)
Expand Down

0 comments on commit f34115d

Please sign in to comment.