RE: Python UDF Internal Error when Registering

2011-01-07 Thread deepak.n85
rg Subject: Re: Python UDF Internal Error when Registering Given that I'm not really sure what is going wrong, here is what I would stay to begin with (I don't know if you copy pasted directly or what so forgive me if I'm nitpicking something that isn't an actual issue): 1)

Re: Python UDF Internal Error when Registering

2011-01-07 Thread Jonathan Coveney
y); > > schema_records = FOREACH records GENERATE udf.split_into_words(input_line); > > DUMP schema_records; > > --- > > Here's the python udf: > > @outputSchema("x:{t:(field1:chararray, field1:chararray)}") > def split_into_words(input_line) >

RE: Python UDF Internal Error when Registering

2011-01-07 Thread deepak.n85
words[1]) --- Am I missing something here? -Original Message- From: Jonathan Coveney [mailto:[email protected]] Sent: Friday, January 07, 2011 10:03 PM To: [email protected] Subject: Re: Python UDF Internal Error when Registering You need to point exactly to jython.jar. so /p

Re: Python UDF Internal Error when Registering

2011-01-07 Thread Jonathan Coveney
then try on > your cluster. Always making sure that your classpath has those details > > Sent via BlackBerry > > -Original Message- > From: > Date: Fri, 7 Jan 2011 19:57:16 > To: > Reply-To: [email protected] > Subject: Python UDF Internal Error when Registe

RE: Python UDF Internal Error when Registering

2011-01-07 Thread deepak.n85
[mailto:[email protected]] Sent: Friday, January 07, 2011 8:04 PM To: [email protected] Subject: Re: Python UDF Internal Error when Registering Make sure that in the register, you use the absolute path. Also make sure that both the jython.jar and udf asre in your classpath. A good test is to

Re: Python UDF Internal Error when Registering

2011-01-07 Thread Jonathan Coveney
Sent via BlackBerry -Original Message- From: Date: Fri, 7 Jan 2011 19:57:16 To: Reply-To: [email protected] Subject: Python UDF Internal Error when Registering Hi, I get an error when I try to register my python udf. Why is this happening? grunt> Register 'udf.py' USING

Python UDF Internal Error when Registering

2011-01-07 Thread deepak.n85
Hi, I get an error when I try to register my python udf. Why is this happening? grunt> Register 'udf.py' USING jython AS udf 2011-01-07 19:39:31,818 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 2998: Unhandled internal error. org/python/util/PythonInterpreter The Logs say the following