hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 某因幡 <tewil...@gmail.com>
Subject Re: PIG with HBase Coprocessors
Date Tue, 28 Aug 2012 03:50:16 GMT
Thanks for your quick reply.
The co-processor looks like:
public void postGet(final ObserverContext<RegionCoprocessorEnvironment> e,
			final Get get, final List<KeyValue> results)
    if table is X
    get some columns from table Y
    add these columns to results
And similar for postScannerNext().
This works in HBase JRuby shell using get/scan plus heavy performance loss.

And the versions are:
Hadoop 1.0.3
HBase 0.92.1
Pig 0.9.2

2012/8/27 Ted Yu <yuzhihong@gmail.com>:
> Allow me to refer to previous discussion:
> http://mail-archives.apache.org/mod_mbox/hbase-user/201203.mbox/%3CCABsY1jQ8+OiLh7SYkXZ8iO=NosY8khz7iYs+6W4u6SxCpJ5s9g@mail.gmail.com%3E
> If the above doesn't answer your question, please give us more details
> about the versions of HBase and PIG you're using.
> On Mon, Aug 27, 2012 at 3:42 AM, 某因幡 <tewilove@gmail.com> wrote:
>> Hi,
>> I've created a co-processor which will insert more columns in the
>> result by overriding preGet and postScannerNext.
>> And it is registered as a system co-processor, works with hbase shell,
>> both get and scan.
>> When I tried to access those columns in PIG, it simply returns null
>> for the column.
>> Is there something more to be done?
>> --
>> language: Chinese, Japanese, English

language: Chinese, Japanese, English

View raw message