You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@phoenix.apache.org by Venu Madhav <bs...@gmail.com> on 2015/12/10 18:45:19 UTC

Fwd: reading hbase configuration properties in user defined functions

Hi guys,



I need to connect to zookeeper quorum and read data from zNode from a user
defined function.

I am able to connect by adding the zookeeper quorum and path of zNode in
hbase-site.xml (clinet side).Is there a way to load the zookeeper quorum
properties from hbase-site.xml (hbase configuration server side) or any
alternative solutions?



Thanks

venu

Re: reading hbase configuration properties in user defined functions

Posted by James Taylor <ja...@apache.org>.
Hi Venu,
Do you mean that you'd connect to zookeeper and read from zNode from a
Phoenix UDF? That sounds dangerous as a UDF gets executed for every row
when used in a WHERE clause during scanning and filtering from a region
server.
Thanks,
James

On Thu, Dec 10, 2015 at 9:45 AM, Venu Madhav <bs...@gmail.com> wrote:

> Hi guys,
>
>
>
> I need to connect to zookeeper quorum and read data from zNode from a user
> defined function.
>
> I am able to connect by adding the zookeeper quorum and path of zNode in
> hbase-site.xml (clinet side).Is there a way to load the zookeeper quorum
> properties from hbase-site.xml (hbase configuration server side) or any
> alternative solutions?
>
>
>
> Thanks
>
> venu
>
>