Skip to content

Commit 7f0c75a

Browse files
committed
restore mvn and SparkILoop.scala
1 parent d88542e commit 7f0c75a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

build/mvn

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,13 @@ install_mvn() {
9191

9292
# Install zinc under the build/ folder
9393
install_zinc() {
94-
local zinc_path="zinc-0.3.15/bin/zinc"
94+
local zinc_path="zinc-0.3.11/bin/zinc"
9595
[ ! -f "${_DIR}/${zinc_path}" ] && ZINC_INSTALL_FLAG=1
9696
local TYPESAFE_MIRROR=${TYPESAFE_MIRROR:-https://downloads.typesafe.com}
9797

9898
install_app \
99-
"${TYPESAFE_MIRROR}/zinc/0.3.15" \
100-
"zinc-0.3.15.tgz" \
99+
"${TYPESAFE_MIRROR}/zinc/0.3.11" \
100+
"zinc-0.3.11.tgz" \
101101
"${zinc_path}"
102102
ZINC_BIN="${_DIR}/${zinc_path}"
103103
}

repl/scala-2.11/src/main/scala/org/apache/spark/repl/SparkILoop.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,13 @@ class SparkILoop(in0: Option[BufferedReader], out: JPrintWriter)
9797
override def commands: List[LoopCommand] = sparkStandardCommands
9898

9999
/**
100-
* We override `createInterpreter` because we need to initialize Spark *before* the REPL
100+
* We override `loadFiles` because we need to initialize Spark *before* the REPL
101101
* sees any files, so that the Spark context is visible in those files. This is a bit of a
102102
* hack, but there isn't another hook available to us at this point.
103103
*/
104-
override def createInterpreter(): Unit = {
105-
super.createInterpreter()
104+
override def loadFiles(settings: Settings): Unit = {
106105
initializeSpark()
106+
super.loadFiles(settings)
107107
}
108108

109109
override def resetCommand(line: String): Unit = {

0 commit comments

Comments
 (0)