You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pig.apache.org by manish dunani <ma...@gmail.com> on 2013/07/31 10:52:05 UTC
error while executing command after creating own udf
Hello,
I created my own udf .which convert the word from lowercase to uppercase.
*Input file:*
*
*
*
*
manish,23,7.06
vigs,23,7.3
amardas,23,8.9
*Commands:*
grunt> register /home/manish/Desktop/myownudf.jar /*successfully done*/
grunt> define mine com.my.own.udf.upper(); /*successfully done*/
grunt> a = load '/home/manish/Desktop/marks' using PigStorage(',') as
(name:chararray,age:int,gpa:float); /*successfully done*/
*Got error while executing:*
*
*
grunt> b = foreach a generate mine($0);
*error:*
*
*
2013-07-31 01:33:34,256 [main] ERROR org.apache.pig.tools.grunt.Grunt -
ERROR 1069: Problem resolving class version numbers for class
com.my.own.udf.upper.
I already use piggybanks' udf with same procedure.But,i couldn't face any
error it's simply done..
i can not resolve this error why this happen..
can any one have an idea???
Your help will be appreciated.
--
MANISH DUNANI
-THANX
Re: error while executing command after creating own udf
Posted by Pradeep Gollakota <pr...@gmail.com>.
I seem to remember another person asking a similar question on the mailing
list before.
I think the answer was a mismatch of the version number of pig that you're
executing with vs version of pig you compiled with.
On Wed, Jul 31, 2013 at 4:52 AM, manish dunani <ma...@gmail.com> wrote:
> Hello,
>
> I created my own udf .which convert the word from lowercase to uppercase.
>
> *Input file:*
> *
> *
> *
> *
> manish,23,7.06
> vigs,23,7.3
> amardas,23,8.9
>
> *Commands:*
>
> grunt> register /home/manish/Desktop/myownudf.jar /*successfully done*/
> grunt> define mine com.my.own.udf.upper(); /*successfully done*/
> grunt> a = load '/home/manish/Desktop/marks' using PigStorage(',') as
> (name:chararray,age:int,gpa:float); /*successfully done*/
>
> *Got error while executing:*
> *
> *
> grunt> b = foreach a generate mine($0);
>
> *error:*
> *
> *
> 2013-07-31 01:33:34,256 [main] ERROR org.apache.pig.tools.grunt.Grunt -
> ERROR 1069: Problem resolving class version numbers for class
> com.my.own.udf.upper.
>
>
> I already use piggybanks' udf with same procedure.But,i couldn't face any
> error it's simply done..
>
> i can not resolve this error why this happen..
>
> can any one have an idea???
>
> Your help will be appreciated.
>
> --
> MANISH DUNANI
> -THANX
>