Skip to content

Commit

Permalink
[SPARK-7489] [SPARK SHELL] Spark shell crashes when compiled with sca…
Browse files Browse the repository at this point in the history
…la 2.11

Spark shell crashes when compiled with scala 2.11 and  SPARK_PREPEND_CLASSES=true

There is a similar Resolved JIRA issue -SPARK-7470 and a PR apache#5997 , which handled same issue only in scala 2.10

Author: vinodkc <[email protected]>

Closes apache#6013 from vinodkc/fix_sqlcontext_exception_scala_2.11 and squashes the following commits:

119061c [vinodkc] Spark shell crashes when compiled with scala 2.11
  • Loading branch information
vinodkc authored and jeanlyn committed Jun 12, 2015
1 parent 7474402 commit efdf50e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ object Main extends Logging {
logInfo("Created sql context (with Hive support)..")
}
catch {
case cnf: java.lang.ClassNotFoundException =>
case _: java.lang.ClassNotFoundException | _: java.lang.NoClassDefFoundError =>
sqlContext = new SQLContext(sparkContext)
logInfo("Created sql context..")
}
Expand Down

0 comments on commit efdf50e

Please sign in to comment.