You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@accumulo.apache.org by "Cardon, Tejay E" <te...@lmco.com> on 2012/09/14 18:54:00 UTC
AccumuloInputFormat and non-Text Keys
All,
I went to write some map/reduce code today that will use the AccumuloInputFormat to add records to Accumulo. However, when I went to build my Mutation object, it quickly became apparent that Mutation only supports character based keys (Text and CharSequence). Is there any way to write records to Accumulo in Map Reduce when column qualifiers or column families are binary data rather than char data?
Thanks,
Tejay
RE: EXTERNAL: Re: AccumuloInputFormat and non-Text Keys
Posted by "Cardon, Tejay E" <te...@lmco.com>.
Excellent. Thank you. And thanks you all of you for getting answers out so quickly.
Tejay
From: Billie Rinaldi [mailto:billie@apache.org]
Sent: Friday, September 14, 2012 11:32 AM
To: user@accumulo.apache.org
Subject: EXTERNAL: Re: AccumuloInputFormat and non-Text Keys
On Fri, Sep 14, 2012 at 9:54 AM, Cardon, Tejay E <te...@lmco.com>> wrote:
All,
I went to write some map/reduce code today that will use the AccumuloInputFormat to add records to Accumulo. However, when I went to build my Mutation object, it quickly became apparent that Mutation only supports character based keys (Text and CharSequence). Is there any way to write records to Accumulo in Map Reduce when column qualifiers or column families are binary data rather than char data?
Text is just a wrapper for a byte array. You can put binary data in a Text.
Billie
Thanks,
Tejay
Re: AccumuloInputFormat and non-Text Keys
Posted by Billie Rinaldi <bi...@apache.org>.
On Fri, Sep 14, 2012 at 9:54 AM, Cardon, Tejay E <te...@lmco.com>wrote:
> All,****
>
> I went to write some map/reduce code today that will use the
> AccumuloInputFormat to add records to Accumulo. However, when I went to
> build my Mutation object, it quickly became apparent that Mutation only
> supports character based keys (Text and CharSequence). Is there any way to
> write records to Accumulo in Map Reduce when column qualifiers or column
> families are binary data rather than char data?
>
Text is just a wrapper for a byte array. You can put binary data in a Text.
Billie
****
>
> ** **
>
> Thanks,****
>
> Tejay****
>