Skip to content

Commit

Permalink
Add a configuration option for spark-shell's class server
Browse files Browse the repository at this point in the history
spark.replClassServer.port
  • Loading branch information
ash211 committed Jul 25, 2014
1 parent f34115d commit 17c79bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion repl/src/main/scala/org/apache/spark/repl/SparkIMain.scala
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ import org.apache.spark.util.Utils

val virtualDirectory = new PlainFile(outputDir) // "directory" for classfiles
/** Jetty server that will serve our classes to worker nodes */
val classServer = new HttpServer(outputDir, new SecurityManager(conf))
val classServerListenPort: Int = conf.getInt("spark.replClassServer.port", 0)
val classServer = new HttpServer(outputDir, new SecurityManager(conf), classServerListenPort)
private var currentSettings: Settings = initialSettings
var printResults = true // whether to print result lines
var totalSilence = false // whether to print anything
Expand Down

0 comments on commit 17c79bb

Please sign in to comment.