-
Notifications
You must be signed in to change notification settings - Fork 78
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
spark3 | scala 2.12 | jackson ScalaObjectMapper | NoSuchMethodError #283
Comments
error is due to conflicting jackson versions with Spark3. Had to pull this Git repo and build the jar with sbt clean package. changed the dependencies.scala to match with spark 3 before building. |
Hi, Thanks for the bug report! I'm going to reopen it since |
@kenny-bui-slalom, which version did you use to make it work? |
spark 3.0.0-preview2 currently uses jackson version 2.10.0 |
Yeah, tried with 3.0.0-preview2 and had similar issues. I'll add a PR to specifically list the dependency as an override. |
@tr11 , Thanks for the fix! |
@tr11 , after the explicit
|
I've played with shading our own version of Jackson in cobol-parser. It works well, but |
Makes sense. Since we already import ANTLR, we can use the grammar at https://github.com/antlr/grammars-v4/blob/master/json/JSON.g4. I can very easily build the visitor for that. |
Cool, thanks for the link! |
I am getting this same error in Spark-3.0.0 with spark-cobol_2.12-2.0.7
I see this bug is fixed, is that I am missing anything? |
|
@yruslan Thank you, it worked. |
Describe the bug
Loading dat file produces a NoSuchMethodError
To Reproduce
Expected behaviour
Should load successfully
Screenshots
Additional context
Using spark3 pyspark on Kubernetes. Require to use sc.addFile and SparkFiles.get due to limitations of kubernetes with ADLS2
The text was updated successfully, but these errors were encountered: