You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@flume.apache.org by Carlotta Hicks <Ca...@sas.com> on 2015/01/26 16:34:04 UTC

How to assign an HBase rowkey

I have an agent with an HBASE sink.  I am using RegexHbaseEventSerializer.  The first part of the data that I am sending into the HBase table is the rowkey.

Right now, the rowkey is being generated.  How can I control the rowkey?


Re: How to assign an HBase rowkey

Posted by Ari Flink <fl...@gmail.com>.
unsubscribe

On Mon, Jan 26, 2015 at 10:20 AM, Hari Shreedharan <
hshreedharan@cloudera.com> wrote:

> The row key is to be assigned by the serializer. Currently the Regex
> interceptor row keys are randomly generated. You can write a new serializer
> that specifies this (you can simply copy the code from the Regex
> interceptor or you can just inherit from the Regex serializer and override
> the getRowKey method.
>
> Thanks,
> Hari
>
>
> On Mon, Jan 26, 2015 at 7:34 AM, Carlotta Hicks <Ca...@sas.com>
> wrote:
>
>>  I have an agent with an HBASE sink.  I am using
>> RegexHbaseEventSerializer.  The first part of the data that I am sending
>> into the HBase table is the rowkey.
>>
>>
>>
>> Right now, the rowkey is being generated.  How can I control the rowkey?
>>
>>
>>
>
>

RE: How to assign an HBase rowkey

Posted by Carlotta Hicks <Ca...@sas.com>.
Thanks for the quick response.  I was able to specify the serializer.rowKeyIndex property in the config and use the data for the row key.

From: Hari Shreedharan [mailto:hshreedharan@cloudera.com]
Sent: Monday, January 26, 2015 1:21 PM
To: user@flume.apache.org
Cc: user@flume.apache.org
Subject: Re: How to assign an HBase rowkey

The row key is to be assigned by the serializer. Currently the Regex interceptor row keys are randomly generated. You can write a new serializer that specifies this (you can simply copy the code from the Regex interceptor or you can just inherit from the Regex serializer and override the getRowKey method.

Thanks,
Hari


On Mon, Jan 26, 2015 at 7:34 AM, Carlotta Hicks <Ca...@sas.com>> wrote:
I have an agent with an HBASE sink.  I am using RegexHbaseEventSerializer.  The first part of the data that I am sending into the HBase table is the rowkey.


Right now, the rowkey is being generated.  How can I control the rowkey?




Re: How to assign an HBase rowkey

Posted by Hari Shreedharan <hs...@cloudera.com>.
The row key is to be assigned by the serializer. Currently the Regex interceptor row keys are randomly generated. You can write a new serializer that specifies this (you can simply copy the code from the Regex interceptor or you can just inherit from the Regex serializer and override the getRowKey method.




Thanks, Hari

On Mon, Jan 26, 2015 at 7:34 AM, Carlotta Hicks <Ca...@sas.com>
wrote:

> I have an agent with an HBASE sink.  I am using RegexHbaseEventSerializer.  The first part of the data that I am sending into the HBase table is the rowkey.
> Right now, the rowkey is being generated.  How can I control the rowkey?