File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
repl/scala-2.10/src/main/scala/org/apache/spark/repl Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -206,7 +206,8 @@ class SparkILoop(
206
206
// e.g. file:/C:/my/path.jar -> C:/my/path.jar
207
207
SparkILoop .getAddedJars.map { jar => new URI (jar).getPath.stripPrefix(" /" ) }
208
208
} else {
209
- SparkILoop .getAddedJars
209
+ // We need new URI(jar).getPath here for the case that `jar` includes encoded white space (%20).
210
+ SparkILoop .getAddedJars.map { jar => new URI (jar).getPath}
210
211
}
211
212
// work around for Scala bug
212
213
val totalClassPath = addedJars.foldLeft(
@@ -1109,7 +1110,7 @@ object SparkILoop extends Logging {
1109
1110
if (settings.classpath.isDefault)
1110
1111
settings.classpath.value = sys.props(" java.class.path" )
1111
1112
1112
- getAddedJars.foreach(settings.classpath.append(_))
1113
+ getAddedJars.map(jar => new URI (jar).getPath). foreach(settings.classpath.append(_))
1113
1114
1114
1115
repl process settings
1115
1116
}
You can’t perform that action at this time.
0 commit comments