Hi Friends I am new to Hive. I am trying to create one UDF in Hive called ConvertDateFormatUDF I am getting the following error while creating temporary function:
hive>add jar /home/cloudera/date.jar
Added /home/cloudera/date.jar to class path Added resource: /home/cloudera/date.jar
hive>CREATE TEMPORARY FUNCTION fun as 'com.db.acedq.opal.hive.ConvertDateFormatUDF';
java.lang.NoClassDefFoundError: org/apache/pig/EvalFunc
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
Caused by: java.lang.ClassNotFoundException: org.apache.pig.EvalFunc
FAILED: Execution Error, return code -101 from org.apache.hadoop.hive.ql.exec.FunctionTask
Please someone help me as i am new to hive. can someone tell me the steps to be followed