[ 
https://issues.apache.org/jira/browse/HADOOP-18215?focusedWorklogId=760511&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-760511
 ]

ASF GitHub Bot logged work on HADOOP-18215:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 21/Apr/22 23:44
            Start Date: 21/Apr/22 23:44
    Worklog Time Spent: 10m 
      Work Description: bbeaudreault opened a new pull request, #4215:
URL: https://github.com/apache/hadoop/pull/4215

   ### Description of PR
   Very simple one-line change that allows users to optionally call addName for 
key/value classes that may not inherit Writable (instead relying on 
serialization). 
   
   ### How was this patch tested?
   Added two tests:
   1. Simple unit test in TestWritableName
   2. More of an integration test in TestSequenceFile which verifies that it 
works to read and write with shimmed serializable classes.
   
   
   




Issue Time Tracking
-------------------

            Worklog Id:     (was: 760511)
    Remaining Estimate: 0h
            Time Spent: 10m

> Enhance WritableName to be able to return aliases for classes that use 
> serializers
> ----------------------------------------------------------------------------------
>
>                 Key: HADOOP-18215
>                 URL: https://issues.apache.org/jira/browse/HADOOP-18215
>             Project: Hadoop Common
>          Issue Type: Improvement
>            Reporter: Bryan Beaudreault
>            Priority: Minor
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> WritableName allows users shim in aliases for writables, in the case where a 
> SequenceFile was written with a Writable class that has since been renamed or 
> moved to another package. However, this requires that the aliased class 
> extend Writable. 
> Separately it's possible to configure jobs with keys and values which don't 
> actually extend Writable. Instead they are meant to be 
> serialized/deserialized using the serialization classes defined in 
> {{io.serializations}} config.
> Unfortunately, the current implementation does not support these key/value 
> classes. All we need to do to support this is remove the 
> {{.asSubclass(Writable.class)}} as is already the case for the default.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to