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

Deserialization error on Spark-shell or in Zeppelin notebook #307

Open
juliankeppel opened this issue Dec 15, 2016 · 0 comments
Open

Deserialization error on Spark-shell or in Zeppelin notebook #307

juliankeppel opened this issue Dec 15, 2016 · 0 comments

Comments

@juliankeppel
Copy link

I get the following error when I want to parse a String into a Scala case class in Spark shell or in a Zeppelin notebook:

com.fasterxml.jackson.databind.JsonMappingException: No suitable constructor found for type [simple type, class MyCaseClassName]: can not instantiate from JSON object (missing default constructor or creator, or perhaps need to add/enable type information?)

I use exactly the same code in a "normal" Spark job, bundled as jar, on the cluster without any trouble. So I guess there is some problem with the REPL/Zeppelin environment?

Scala 2.11.8
Spark 2.0.2
Zeppelin 0.6.2
fasterxml.jackson 2.8.4

I found a similar isse here: wg/jacks#13
And as I read there: https://github.com/FasterXML/jackson-module-scala#caveats in some cases it could be a problem. So maybe in Spark shell or Zeppelin the class debug information is disabled?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant