File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
repl/scala-2.11/src/main/scala/org/apache/spark/repl Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 17
17
18
18
package org .apache .spark .repl
19
19
20
- import org .apache .spark .util .Utils
21
- import org .apache .spark ._
22
- import org .apache .spark .sql .SQLContext
20
+ import java .io .File
23
21
24
22
import scala .tools .nsc .Settings
25
23
import scala .tools .nsc .interpreter .SparkILoop
26
24
25
+ import org .apache .spark .util .Utils
26
+ import org .apache .spark ._
27
+ import org .apache .spark .sql .SQLContext
28
+
27
29
object Main extends Logging {
28
30
29
31
val conf = new SparkConf ()
@@ -32,7 +34,9 @@ object Main extends Logging {
32
34
val outputDir = Utils .createTempDir(rootDir)
33
35
val s = new Settings ()
34
36
s.processArguments(List (" -Yrepl-class-based" ,
35
- " -Yrepl-outdir" , s " ${outputDir.getAbsolutePath}" , " -Yrepl-sync" ), true )
37
+ " -Yrepl-outdir" , s " ${outputDir.getAbsolutePath}" ,
38
+ " -Yrepl-sync" ,
39
+ " -classpath" , getAddedJars.mkString(File .pathSeparator)), true )
36
40
val classServer = new HttpServer (conf, outputDir, new SecurityManager (conf))
37
41
var sparkContext : SparkContext = _
38
42
var sqlContext : SQLContext = _
You can’t perform that action at this time.
0 commit comments