Skip to content
Snippets Groups Projects
Commit 4e7360e1 authored by vinodkc's avatar vinodkc Committed by Andrew Or
Browse files

[SPARK-7489] [SPARK SHELL] Spark shell crashes when compiled with scala 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 https://github.com/apache/spark/pull/5997 , which handled same issue only in scala 2.10

Author: vinodkc <vinod.kc.in@gmail.com>

Closes #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
parent c45c09b0
No related branches found
No related tags found
No related merge requests found
......@@ -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..")
}
......
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