Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.IncompatibleClassChangeError: Implementing class #1544

Closed
bkanzki opened this issue May 22, 2017 · 8 comments
Closed

java.lang.IncompatibleClassChangeError: Implementing class #1544

bkanzki opened this issue May 22, 2017 · 8 comments
Labels
Milestone

Comments

@bkanzki
Copy link

@bkanzki bkanzki commented May 22, 2017

Hi
I am using the function vcf2adam and get the following error:Using ADAM_MAIN=org.bdgenomics.adam.cli.ADAMMain
Using SPARK_SUBMIT=/usr/bin/spark-submit
17/05/22 02:12:58 INFO ADAMMain: ADAM invoked with args: "vcf2adam" "/myvcf.vcf" "/home/G/_adam"
Exception in thread "main" java.lang.IncompatibleClassChangeError: Implementing class
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.bdgenomics.adam.cli.Vcf2ADAM.(Vcf2ADAM.scala:57)
at org.bdgenomics.adam.cli.Vcf2ADAM$.apply(Vcf2ADAM.scala:32)
at org.bdgenomics.adam.cli.Vcf2ADAM$.apply(Vcf2ADAM.scala:27)
at org.bdgenomics.adam.cli.ADAMMain.apply(ADAMMain.scala:127)
at org.bdgenomics.adam.cli.ADAMMain$.main(ADAMMain.scala:66)
at org.bdgenomics.adam.cli.ADAMMain.main(ADAMMain.scala)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:738)
at org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:187)
at org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:212)
at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:126)
at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
I got the latest version in the repository.
Any help please?

@heuermh
Copy link
Member

@heuermh heuermh commented May 22, 2017

This is often a mismatch in Scala versions. Which versions of Spark and Scala did you build for? Which versions of Spark and Scala are you running on?

@bkanzki
Copy link
Author

@bkanzki bkanzki commented May 22, 2017

@fnothaft
Copy link
Member

@fnothaft fnothaft commented May 22, 2017

Hi @jokerbea! You'll need to build specifically for Spark 2. You can do this by running the ./scripts/move_to_spark_2.sh script before doing mvn package. We don't currently support Scala 2.12, as most of our upstream dependencies don't provide releases for Scala 2.12. Are you doing a custom build of Spark for Scala 2.12?

@bkanzki
Copy link
Author

@bkanzki bkanzki commented May 22, 2017

@fnothaft
Copy link
Member

@fnothaft fnothaft commented May 22, 2017

Hi @jokerbea! As far as I understand, Spark doesn't currently support Scala 2.12. We don't plan to support building ADAM against Scala 2.12 until Spark adds support for Scala 2.12, which is currently slated for Spark 2.3.0.

@bkanzki
Copy link
Author

@bkanzki bkanzki commented May 22, 2017

@fnothaft
Copy link
Member

@fnothaft fnothaft commented May 22, 2017

We support both Scala 2.10 and 2.11.

@fnothaft
Copy link
Member

@fnothaft fnothaft commented Jun 22, 2017

I'm going to close this as resolved. Please reopen if you're still seeing issues @jokerbea!

@fnothaft fnothaft closed this Jun 22, 2017
@heuermh heuermh modified the milestone: 0.23.0 Jul 22, 2017
@heuermh heuermh added this to Completed in Release 0.23.0 Jan 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.