You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I copy/pasted code from this project into your simplesparkapp, and it worked for me (well, parallelize seemed to corrupt my avros but that's another story).
However this project fails to run for me on a Cloudera quickstart VM 5.0.
And get the error:
Exception in thread "main" java.lang.NoSuchMethodError: org.apache.spark.SparkContext.(Lorg/apache/spark/SparkConf;)V
at com.cloudera.sparkavro.SparkAvroWriter$.main(SparkAvroWriter.scala:39)
at com.cloudera.sparkavro.SparkAvroWriter.main(SparkAvroWriter.scala)
What am I missing to get Spark and Cloudera to play well together?
Thanks,
Julian
The text was updated successfully, but these errors were encountered:
I think the issue is probably binary incompatibility between what you're compiling against and what you're running against. CDH5.0 includes Spark 0.9, and it sounds like you're compiling against Spark 1.0. Can you try replacing the Spark dependency version in the pom with 0.9.0-cdh5.0.0?
Hi, thanks for this example.
I copy/pasted code from this project into your simplesparkapp, and it worked for me (well,
parallelize
seemed to corrupt my avros but that's another story).However this project fails to run for me on a Cloudera quickstart VM 5.0.
I run with:
source /etc/spark/conf/spark-env.sh
And get the error:
Exception in thread "main" java.lang.NoSuchMethodError: org.apache.spark.SparkContext.(Lorg/apache/spark/SparkConf;)V
at com.cloudera.sparkavro.SparkAvroWriter$.main(SparkAvroWriter.scala:39)
at com.cloudera.sparkavro.SparkAvroWriter.main(SparkAvroWriter.scala)
What am I missing to get Spark and Cloudera to play well together?
Thanks,
Julian
The text was updated successfully, but these errors were encountered: