Skip to content
Snippets Groups Projects
Commit 065043a1 authored by Ismael Juma's avatar Ismael Juma
Browse files

Use process instead of main as the latter is deprecated.

parent 6ff57f55
No related branches found
No related tags found
No related merge requests found
...@@ -25,7 +25,7 @@ class ReplSuite extends FunSuite { ...@@ -25,7 +25,7 @@ class ReplSuite extends FunSuite {
val interp = new SparkILoop(in, new PrintWriter(out), master) val interp = new SparkILoop(in, new PrintWriter(out), master)
spark.repl.Main.interp = interp spark.repl.Main.interp = interp
val separator = System.getProperty("path.separator") val separator = System.getProperty("path.separator")
interp.main(Array("-classpath", paths.mkString(separator))) interp.process(Array("-classpath", paths.mkString(separator)))
spark.repl.Main.interp = null spark.repl.Main.interp = null
if (interp.sparkContext != null) if (interp.sparkContext != null)
interp.sparkContext.stop() interp.sparkContext.stop()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment