phoenix-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cheyenne Forbes <>
Subject Re: How can I "use" a hbase co-processor from a User Defined Function?
Date Tue, 18 Apr 2017 19:34:44 GMT
I am creating a plugin that uses Lucene to index text fields and I need to
access *getConf()* and *getFilesystem()* of *HRegion, *the Lucene indexes
are split with the regions so I need  " *HRegion MyVar; ", *I am positive
the UDF will run on the region server and not the client*.*


Cheyenne O. Forbes

On Tue, Apr 18, 2017 at 1:22 PM, James Taylor <>

> Shorter answer is "no". Your UDF may be executed on the client side as
> well (depending on the query) and there is of course no HRegion available
> from the client.
> On Tue, Apr 18, 2017 at 11:10 AM Sergey Soldatov <>
> wrote:
>> Well, theoretically there is a way of having a coprocessor that will keep
>> static public map of current rowkey processed by Phoenix and the correlated
>> HRegion instance and get this HRegion using the key that is processed by
>> evaluate function. But it's a completely wrong approach for both HBase and
>> Phoenix. And it's not clear for me why SQL query may need access to the
>> region internals.
>> Thanks,
>> Sergey
>> On Mon, Apr 17, 2017 at 10:04 PM, Cheyenne Forbes <
>>> wrote:
>>> so there is no way of getting HRegion in a UDF?

View raw message