Did you add the jar containing the class com.example.hive.udf.Lower using "ADD JAR"? This error definitely occurs when the appropriate jar is not on the path, and when there is a typo in class name. There are probably other causes as well.
Dilip On Mon, May 17, 2010 at 1:03 PM, Edmar Ferreira < [email protected]> wrote: > Seems that every time I execute : > > create temporary function my_lower as 'com.example.hive.udf.Lower'; > > One lime with this error is added to the log file, my last lines are : > > 2010-05-17 14:55:28,500 ERROR ql.Driver (SessionState.java:printError(279)) > - FAILED: Execution Error, return code 1 from > org.apache.hadoop.hive.ql.exec.FunctionTask > 2010-05-17 15:07:42,128 ERROR ql.Driver (SessionState.java:printError(279)) > - FAILED: Execution Error, return code 1 from > org.apache.hadoop.hive.ql.exec.FunctionTask > 2010-05-17 15:17:55,815 ERROR ql.Driver (SessionState.java:printError(279)) > - FAILED: Execution Error, return code 1 from > org.apache.hadoop.hive.ql.exec.FunctionTask > > > On Mon, May 17, 2010 at 3:48 PM, Ashish Thusoo <[email protected]>wrote: > >> Can you send the contents of /tmp/<username>/hive.log file? That should >> show a stack dump for this error. >> >> Ashish >> >> ------------------------------ >> *From:* Edmar Ferreira [mailto:[email protected]] >> *Sent:* Monday, May 17, 2010 11:37 AM >> *To:* [email protected] >> *Subject:* Error when creating custom UDFs >> >> Hi, >> >> I am traying to create a UDF as describe in this tutorial : >> >> http://wiki.apache.org/hadoop/Hive/HivePlugins >> >> >> But when I use this command : >> >> create temporary function my_lower as 'com.example.hive.udf.Lower'; >> >> I see this error : >> >> >> FAILED: Execution Error, return code 1 from >> org.apache.hadoop.hive.ql.exec.FunctionTask >> >> Thanks, >> > >
