Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up3.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. |
ruebot
added a commit
to archivesunleashed/aut
that referenced
this issue
Apr 26, 2018
, see also: json4s/json4s#316 (#205)
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.