hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yiqun Lin (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-11233) The APIs to be deprecated after Jackson upgraded
Date Mon, 12 Dec 2016 04:10:58 GMT

     [ https://issues.apache.org/jira/browse/HDFS-11233?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Yiqun Lin updated HDFS-11233:
-----------------------------
    Description: 
After HADOOP-12705, the Jackson version upgraded from 2.2.3 to 2.7.8. This lead many APIs
which we are used in hadoop being deprecated. Since 2.5, these two APIs are deprecated: {{ObjectReader#readerFor(Class<?>
type)}},{{ObjectWriter#writerWithType(JavaType rootType)}}(http://fasterxml.github.io/jackson-databind/javadoc/2.6/com/fasterxml/jackson/databind/ObjectMapper.html).

According to the doc of ObjectMapper, we can use {{ObjectReader#readerFor(Class<?> type)}}
and {{# ObjectWriter#writerFor(JavaType)}} instead.

  was:
After HADOOP-12705, the Jackson version upgraded from 2.2.3 to 2.7.8. This lead many APIs
which we are used in hadoop being deprecated. Since 2.5, these two APIs is deprecated: {{ObjectReader#readerFor(Class<?>
type)}},{{ObjectWriter#writerWithType(JavaType rootType)}}(http://fasterxml.github.io/jackson-databind/javadoc/2.6/com/fasterxml/jackson/databind/ObjectMapper.html).

According to the doc of ObjectMapper, we can use {{ObjectReader#readerFor(Class<?> type)}}
and {{# ObjectWriter#writerFor(JavaType)}} instead.


> The APIs to be deprecated after Jackson upgraded
> ------------------------------------------------
>
>                 Key: HDFS-11233
>                 URL: https://issues.apache.org/jira/browse/HDFS-11233
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>    Affects Versions: 3.0.0-alpha2
>            Reporter: Yiqun Lin
>            Assignee: Yiqun Lin
>
> After HADOOP-12705, the Jackson version upgraded from 2.2.3 to 2.7.8. This lead many
APIs which we are used in hadoop being deprecated. Since 2.5, these two APIs are deprecated:
{{ObjectReader#readerFor(Class<?> type)}},{{ObjectWriter#writerWithType(JavaType rootType)}}(http://fasterxml.github.io/jackson-databind/javadoc/2.6/com/fasterxml/jackson/databind/ObjectMapper.html).
> According to the doc of ObjectMapper, we can use {{ObjectReader#readerFor(Class<?>
type)}} and {{# ObjectWriter#writerFor(JavaType)}} instead.



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

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


Mime
View raw message