Page 1 of 1

Add UDF to Vertica

Posted: Thu Apr 21, 2016 5:23 pm
by alaasalmo
Hi,
I am trying to add UDF JAR and I am getting the following error:

Coomand: CREATE LIBRARY wordCountLib as 'CountWordsUDxLib.jar' LANGUAGE 'JAVA';

************************* Error ****************************************************************************

ROLLBACK 5699: Cannot find java binary: neither the Linux environment variable JAVA_HOME nor Vertica config parameter JavaBinaryForUDx is set
HINT: Please set JAVA_HOME environment variable or JavaBinaryForUDx config parameter to help vertica find java binary
*************************************************************************************************************

Do you know why!

Re: Add UDF to Vertica

Posted: Fri Apr 22, 2016 12:08 am
by JimKnicely
Hi,

Did you read that HNT?
HINT: Please set JAVA_HOME environment variable or JavaBinaryForUDx config parameter to help vertica find java binary
Did you do one of these things?