You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Kevin Chen (JIRA)" <ji...@apache.org> on 2015/09/11 19:16:47 UTC

[jira] [Comment Edited] (SPARK-10438) Can't use Jackson to deserialize Spark json API output directly into Spark info structs

    [ https://issues.apache.org/jira/browse/SPARK-10438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14741166#comment-14741166 ] 

Kevin Chen edited comment on SPARK-10438 at 9/11/15 5:16 PM:
-------------------------------------------------------------

Jackson with DefaultScalaModule works fine; annotations aren't necessary.


was (Author: kyc):
Can use Jackson with DefaultScalaModule; annotations aren't necessary.

> Can't use Jackson to deserialize Spark json API output directly into Spark info structs
> ---------------------------------------------------------------------------------------
>
>                 Key: SPARK-10438
>                 URL: https://issues.apache.org/jira/browse/SPARK-10438
>             Project: Spark
>          Issue Type: Bug
>          Components: Input/Output
>    Affects Versions: 1.4.1
>            Reporter: Kevin Chen
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> [SPARK-3454] added new API endpoints at /api/v1/[path] that are formatted as JSONs corresponding to the structs in org/apache/spark/status/api/v1/api.scala (class ApplicationInfo, ApplicationAttemptInfo, etc...). However, deserialization of the JSON output with Java Jackson/Retrofit fails, because the structs are not Jackson annotated (e.g. @ JacksonProperty). They should be, so that the JSON can be directly deserialized into the api.scala structs.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org