You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@avro.apache.org by Rahul <rs...@xebia.com> on 2012/08/24 05:52:00 UTC
Avro and TotalOrderPartitioner
Hi,
I am doing total order sort using the TotalOrderPartitioner. The
petitioner requires a squenceFile with keys of type WritableComparable.
Now I can create a sequence file using AvroKey type but that does not
work as the class is not WritableComparable. How can I create such a
file using avro data ?
regards
Rahul
Re: Avro and TotalOrderPartitioner
Posted by Harsh J <ha...@cloudera.com>.
You'll need to reimplement the TotalOrderPartitioner to not require
WritableComparable extending keys. Please see
https://issues.apache.org/jira/browse/MAPREDUCE-4574, which is the
proposed fix.
On Fri, Aug 24, 2012 at 9:22 AM, Rahul <rs...@xebia.com> wrote:
> Hi,
>
> I am doing total order sort using the TotalOrderPartitioner. The petitioner
> requires a squenceFile with keys of type WritableComparable. Now I can
> create a sequence file using AvroKey type but that does not work as the
> class is not WritableComparable. How can I create such a file using avro
> data ?
>
> regards
> Rahul
>
>
--
Harsh J