We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2094e94 commit 2dc7fe2Copy full SHA for 2dc7fe2
repl/scala-2.11/src/main/scala/org/apache/spark/repl/Main.scala
@@ -35,6 +35,7 @@ object Main extends Logging {
35
s.processArguments(List("-Yrepl-class-based",
36
"-Yrepl-outdir", s"${outputDir.getAbsolutePath}",
37
"-classpath", getAddedJars.mkString(File.pathSeparator)), true)
38
+ // the creation of SecurityManager has to be lazy so SPARK_YARN_MODE is set if needed
39
lazy val classServer = new HttpServer(conf, outputDir, new SecurityManager(conf))
40
var sparkContext: SparkContext = _
41
var sqlContext: SQLContext = _
0 commit comments