嗨朋友我是Hive的新手。我想創建一個UDF在蜂巢稱爲ConvertDateFormatUDF 我收到以下錯誤,創建臨時函數:創建配置單元UDF
hive>add jar /home/cloudera/date.jar
新增/home/cloudera/date.jar到類路徑 添加的資源:/首頁/ 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
請有人幫助我,因爲我是新的配置單元。有人可以告訴我要遵循的步驟