Page 1 of 1

Not able to create Library in Vertica.

Posted: Thu Feb 26, 2015 2:07 pm
by MMuthu
Hi,
I am trying to create a library with the help of following SQL, But I am getting the below error.

Please let me know how I can fix this error.

https://drive.google.com/file/d/0B2BpbV ... sp=sharing

Regards,
Mahendran M

Re: Not able to create Library in Vertica.

Posted: Thu Feb 26, 2015 2:31 pm
by JimKnicely
Hi,

Check the "Updating UDx Libraries" section of the "Extending HP Vertica" documentation.

...you need to update libraries that you have already deployed:
When you have upgraded HP Vertica to a new version that contains changes to the SDK API. For your libraries to work with the new server version, you need to recompile them with new version of the SDK. See UDx Library Compatibility with New Server Versions for more information.
Here is a link to the on line doc:

http://my.vertica.com/docs/7.1.x/HTML/i ... ies|_____0

Re: Not able to create Library in Vertica.

Posted: Thu Feb 26, 2015 3:09 pm
by MMuthu
Hi Jim,
Thank you for your response. I am very new to Vertica, I saw the URL's which you sent. I could not get as how to fix it.

Is there is any specific steps which I need to do? Do you think the steps would be available anywhere? Kindly advise.

Regards,
Mahendran M

Re: Not able to create Library in Vertica.

Posted: Thu Feb 26, 2015 3:22 pm
by JimKnicely
Hi,

I think you just need to recompile your Java source code using the latest Vertica SDK. Something like this at the command prompt:

javac -classpath /opt/vertica/bin/VerticaSDK.jar factorySource.java \[functionSource.java...]

And then rebuild the JAR file...

Re: Not able to create Library in Vertica.

Posted: Thu Feb 26, 2015 3:36 pm
by MMuthu
Hi Jim,
Sorry to bug you!

I executed the command, but throws the factorySource.java does not exist. Please see the attachment.

Will it be possible for you to share some 5 minutes in a screen share, I would appreciate that greatly.
javac command.png
javac command.png (15.32 KiB) Viewed 9992 times
Regards,
Mahendran M