Thanks Rajeshbabu and James for your help! The problem is resolved. There was
an issue with the jar packaging. Instead of putting the UDF in the
org.apache.phoenix.expression.function package, I had to put it in my own,
custom package.
- Anchal
On Tuesday, July 28, 2015 4:05 AM, "rajesh
bq. Rajeshbabu, instead of HDFS, I have a custom NFS setup for which I have
specified the *fs.nfs.impl* property in hbase-site. I've put the UDF jar in
this NFS setup, and also in the directory specified in the
*hbase.dynamic.jars.dir* property
In that case it should work. You can check the jar is
Hi James and Rajeshbabu,
Thank you for your replies. My hbase-site confs are being picked up, I have
confirmed it by deliberately misconfiguring one of the properties.
Rajeshbabu, instead of HDFS, I have a custom NFS setup for which I have
specified the fs.nfs.impl property in hbase-site. I've pu
Hi Anchal Agrawal,
Have you place the jar in HDFS? and the path_to_jar in the create function
is the URI for the jar in hdfs?
Thanks,
Rajeshbabu.
On Sat, Jul 25, 2015 at 5:58 AM, James Taylor
wrote:
> Are you sure your hbase-site.xml is being picked up on the client-side?
> I've seen this hap
Are you sure your hbase-site.xml is being picked up on the client-side?
I've seen this happen numerous times. Maybe try setting something in there
that would cause an obvious issue to confirm.
I'm not away of anything else you need to do, but I'm sure Rajeshbabu will
chime in if there is.
Thanks,
Hi James,
Thanks for your email! I have set the hbase-site.xml configs. I tried removing
the dependent jars from the UDF jar and instead included the dependencies in
the classpath, but that didn't help.
Is there anything else that I could be missing, or could I try out some other
debug steps?
T
I don't believe you'd want to bundle the dependent jars iniside your jar -
I wasn't completely sure if that's what you've done. Also there's a config
you need to enable in your client-side hbase-site.xml to use this feature.
Thanks,
James
On Friday, July 24, 2015, Anchal Agrawal wrote:
> Hi all,
Hi all,
I'm having issues getting a UDF to work. I've followed the instructions and
created a jar, and I've created a function with the CREATE FUNCTION command.
However, when I use the function in a SELECT statement, I get a
ClassNotFoundException for the custom class I wrote. I'm using v4.4.0.