Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

HIVE UDF class not found

Highlighted

HIVE UDF class not found

New Contributor

I have created a HIVE UDF in scala, i am getting below error when creating function in hive using beeline

jdbc:hive2:> list jars; +----------------------------------------------------------------------------+--+ | resource | +----------------------------------------------------------------------------+--+ | /tmp/a22a6181-545f-4826-8d79-eee2609b2cda_resources/cnt_business_days.jar | +----------------------------------------------------------------------------+--+ 1 row selected (0.015 seconds) 0:

jdbc:hive2:> CREATE temporary FUNCTION trim AS 'com.hiveudf.ScalaHiveUdf' ; ERROR : FAILED: Class com.hiveudf.ScalaHiveUdf not found Error: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.FunctionTask (state=08S01,code=1)