Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

How to upgrade Spark 1.6.0 to 2.1.0 ?

How to upgrade Spark 1.6.0 to 2.1.0 ?

Contributor

I have used  CDH 5.12 for installation. By default it installs Spark 1.6.0. Can I upgrade Spark by downloading and manual installation ? What are the recommended steps one need to perform ?

 

 

Thanks

3 REPLIES 3

Re: How to upgrade Spark 1.6.0 to 2.1.0 ?

Contributor
@mbigelow

Any pointers ?

Re: How to upgrade Spark 1.6.0 to 2.1.0 ?

Champion

@vikash145

 

In general both Cloudera & Hortonwork supports two different services for Spark 1.x and 2.x

 

so you don't need to upgrade your spark 1.x, instead you can install spark 2.x as a new service

 

Pls refer this link for more details

 

http://community.cloudera.com/t5/Community-News-Release/ANNOUNCE-Spark-2-0-Release-2/m-p/51464/highl...

Re: How to upgrade Spark 1.6.0 to 2.1.0 ?

Contributor
i installed spark2 parcel, it got activated without any issue. But look like its not configured properly. while doing 'spark-shell' , I am getting below error:

spark2-shell
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/fs/FSDataInputStream
at org.apache.spark.deploy.SparkSubmitArguments$$anonfun$mergeDefaultSparkProperties$1.apply(SparkSubmitArguments.scala:118)
at org.apache.spark.deploy.SparkSubmitArguments$$anonfun$mergeDefaultSparkProperties$1.apply(SparkSubmitArguments.scala:118)
at scala.Option.getOrElse(Option.scala:121)
at org.apache.spark.deploy.SparkSubmitArguments.mergeDefaultSparkProperties(SparkSubmitArguments.scala:118)
at org.apache.spark.deploy.SparkSubmitArguments.<init>(SparkSubmitArguments.scala:104)
at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:119)
at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.fs.FSDataInputStream
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)


Also , there is nothing in /etc/spark2/conf