You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@phoenix.apache.org by Cheyenne Forbes <ch...@gmail.com> on 2017/05/02 13:51:27 UTC
Where to put UDF jar
I created a jar with:
jar -cf $HBASE_HOME/lib/phoenix-udj.jar UDF.java
but I get "ClassNotFoundException" when I try to use the UDF in simple
select query
Regards,
Cheyenne O. Forbes
Re: Where to put UDF jar
Posted by Randy Hu <ru...@gmail.com>.
Here is the official doc for the UDF config:
https://phoenix.apache.org/udf.html
I was able to get the UDF picked up after following the instruction. Since I
was just testing with local instance, here is my simplified config in
hbase-site.xml under "<phoenix home>/bin":
<property>
<name>phoenix.functions.allowUserDefinedFunctions</name>
<value>true</value>
</property>
<property>
<name>hbase.dynamic.jars.dir</name>
<value>file:///Users/me/tmp/hbase/lib</value>
</property>
--
View this message in context: http://apache-phoenix-user-list.1124778.n5.nabble.com/Where-to-put-UDF-jar-tp3503p3506.html
Sent from the Apache Phoenix User List mailing list archive at Nabble.com.
Re: Where to put UDF jar
Posted by Josh Elser <el...@apache.org>.
The client's classpath and all RegionServer's classpath.
Cheyenne Forbes wrote:
> I created a jar with:
>
> jar -cf $HBASE_HOME/lib/phoenix-udj.jar UDF.java
>
> but I get "ClassNotFoundException" when I try to use the UDF in simple
> select query
>
> Regards,
>
> Cheyenne O. Forbes