[
https://issues.apache.org/jira/browse/MAPREDUCE-815?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12736993#action_12736993
]
Ravi Gummadi commented on MAPREDUCE-815:
----------------------------------------
This could have something like
public class AvroInputFormat extends
FileInputFormat<AvroReflectSerializable, AvroReflectSerializable> {
@Override
public RecordReader<AvroReflectSerializable, AvroReflectSerializable>
createRecordReader(InputSplit split,
TaskAttemptContext context) {
return new AvroRecordReader();
}
//...
}
and
public class AvroRecordReader extends
RecordReader<AvroReflectSerializable, AvroReflectSerializable> {
//implements the methods of RecordReader for KEY and VALUE of avro types
}
Does this look fine ?
> Add AvroInputFormat and AvroOutputFormat so that hadoop can use Avro
> Serialization
> ----------------------------------------------------------------------------------
>
> Key: MAPREDUCE-815
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-815
> Project: Hadoop Map/Reduce
> Issue Type: New Feature
> Reporter: Ravi Gummadi
> Assignee: Ravi Gummadi
>
> MapReduce needs AvroInputFormat similar to other InputFormats like
> TextInputFormat to be able to use avro serialization in hadoop. Similarly
> AvroOutputFormat is needed.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.