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
3.3.0 gives java.lang.NoSuchMethodError when used in Spark #316
Labels
Comments
Spark 1.5.0 depends on json4s 3.2.10. json4s 3.2.10 and 3.3.0 does not have binary compatibility. You can't use spark 1.5.0 and json4s 3.3.0 together. |
lintool
added a commit
to archivesunleashed/aut
that referenced
this issue
Apr 26, 2018
ruebot
pushed a commit
to archivesunleashed/aut
that referenced
this issue
Apr 26, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When using json4s 3.3.0 in Spark (1.5.0), I'm getting a NoSuchMethodError on
org.json4s.Serialization$class.read(Lorg/json4s/Serialization;Ljava/lang/String;Lorg/json4s/Formats;Lscala/reflect/Manifest;)Ljava/lang/Object
.The error does not occur when using json4s 3.2.11 (!)
To reproduce the problem, all you need to do is parse a trivial piece of json. First, start the Spark console:
bin/spark-shell --packages "org.json4s:json4s-native_2.10:3.3.0"
Then, execute
Strangly enough, this works fine when not using Spark, or when using an older version of json4s (3.2.11) with Spark.
The text was updated successfully, but these errors were encountered: