Skip to content

Commit 61147e6

Browse files
author
Andrew Or
committed
Also expect NoClassDefFoundError
1 parent cd1d411 commit 61147e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1028,7 +1028,7 @@ class SparkILoop(
10281028
logInfo("Created sql context (with Hive support)..")
10291029
}
10301030
catch {
1031-
case cnf: java.lang.ClassNotFoundException =>
1031+
case _: java.lang.ClassNotFoundException | _: java.lang.NoClassDefFoundError =>
10321032
sqlContext = new SQLContext(sparkContext)
10331033
logInfo("Created sql context..")
10341034
}

0 commit comments

Comments
 (0)