Hive gives SemanticException [Error 10014]: when Running my UDF

Based on your answre, It looks like you are missing some dependencies in your JAR file. how are you compiling your project that contains the UDF?

Probably missing this one in the Hive classpath


As work around, you could try compile it using jar with dependencies (not a good practice for this case) but at least we will know if that is your problem


the other option is add this dependency to the Hive classpath and try again

The actual reason for the failure is due to the below error.

Caused by: java.lang.NoSuchMethodError: com.fasterxml.jackson.databind.node.ObjectNode.(Lcom/fasterxml/jackson/databind/node/JsonNodeFactory;Ljava/util/Map;)V

Looks like you might be having conflicting version of jars in the classpath.

add -verbose:class jvm option to hs2 before starting it and then see which jar is getting picked up - remove the jar if it is old or not required for the udf.