Created 12-24-2017 01:08 AM
I'm new to UDF and selected this example (https://github.com/rathboma/hive-extension-examples) to test the waters. In hive cli, I can add the resulting jar file and can create a temporary function, but when I use it in a query , I receive the following error:
java.lang.IllegalAccessException: Class org.apache.hadoop.hive.ql.udf.generic.GenericUDFBridge can not access a member of class com.matthewrathbone.example.SimpleUDFExample with modifiers ""
a google search suggested the changing the class to public would resolve this issue, but that hasn't worked for me.
Created 01-02-2018 05:06 AM
Are you sure that you picked up an updated jar when you changed the modifier of the class? Changing the modifier should have worked...
Created 01-02-2018 05:06 AM
Are you sure that you picked up an updated jar when you changed the modifier of the class? Changing the modifier should have worked...
Created 01-02-2018 06:16 PM
Gunther, Thanks for the response. I think I had a version of the jar file in the hive path that didn't have the public class modifier. There was much flailing an an attempt to resolve the issue and I had at least three copies floating around. I deleted everything and redeployed with the correct setting and it works now.