You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hive.apache.org by Edmar Ferreira <ed...@gmail.com> on 2010/05/17 20:36:32 UTC

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,

Re: Error when creating custom UDFs

Posted by Dilip Joseph <di...@gmail.com>.
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 <
edmaroliveiraferreira@gmail.com> 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 <at...@facebook.com>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:edmaroliveiraferreira@gmail.com]
>> *Sent:* Monday, May 17, 2010 11:37 AM
>> *To:* hive-user@hadoop.apache.org
>> *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,
>>
>
>

Re: Error when creating custom UDFs

Posted by Edmar Ferreira <ed...@gmail.com>.
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 <at...@facebook.com> 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:edmaroliveiraferreira@gmail.com]
> *Sent:* Monday, May 17, 2010 11:37 AM
> *To:* hive-user@hadoop.apache.org
> *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,
>

RE: Error when creating custom UDFs

Posted by Ashish Thusoo <at...@facebook.com>.
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:edmaroliveiraferreira@gmail.com]
Sent: Monday, May 17, 2010 11:37 AM
To: hive-user@hadoop.apache.org
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,