I wrote a custom UDF in java and packed in a jar
file. Then, I added it in Hive using:
create temporary function isstopword as 'org.dennis.udf.IsStopWord';
Every thing worked fine. But, after I updated a small part in the UDF, I did the previous steps again, consequently Hive obviously still used old version UDF.
How can I refresh the updated version of UDF?
I tried to deleted the old jar
file in hdfs, and drop the udf function with:
DROP TEMPORARY FUNCTION IF EXISTS isstopword;
Then recreate a new function with the same name, it still used the older version UDF.