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

ramkrishna.s.vasudevan commented on HBASE-18649:
------------------------------------------------

I think the best way is to create a wrapper ExtendedCellImpl and in the 
mapreduce mappers wrap the incoming cell with the wrapper. In all the mapreduce 
impl set the outputValueClass as the Wrapper class so that we are sure that we 
can handle all the types of Cells.
Because mappers does not allow interfaces as the class types
{code}
Caused by: java.io.IOException: Type mismatch in value from map: expected 
org.apache.hadoop.hbase.ExtendedCell, received 
org.apache.hadoop.hbase.SizeCachedNoTagsKeyValue
        at 
org.apache.hadoop.mapred.MapTask$MapOutputBuffer.collect(MapTask.java:1079)
        at 
org.apache.hadoop.mapred.MapTask$NewOutputCollector.write(MapTask.java:715)
        at 
org.apache.hadoop.mapreduce.task.TaskInputOutputContextImpl.write(TaskInputOutputContextImpl.java:89)
        at 
org.apache.hadoop.mapreduce.lib.map.WrappedMapper$Context.write(WrappedMapper.java:112)
        at 
org.apache.hadoop.hbase.backup.mapreduce.MapReduceHFileSplitterJob$HFileCellMapper.map(MapReduceHFileSplitterJob.java:83)
        at 
org.apache.hadoop.hbase.backup.mapreduce.MapReduceHFileSplitterJob$HFileCellMapper.map(MapReduceHFileSplitterJob.java:76)
        at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:146)
{code}

> Deprecate KV Usage in MR to move to Cells in 3.0
> ------------------------------------------------
>
>                 Key: HBASE-18649
>                 URL: https://issues.apache.org/jira/browse/HBASE-18649
>             Project: HBase
>          Issue Type: Improvement
>          Components: mapreduce
>    Affects Versions: 2.0.0-alpha-2
>            Reporter: ramkrishna.s.vasudevan
>            Assignee: ramkrishna.s.vasudevan
>             Fix For: 2.0.0, 3.0.0, 2.1.0
>
>         Attachments: HBASE-18649_master.patch
>
>




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to