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)
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)
>
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
apache.org
> 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
> do that, then try and register in local mode. If that works,
[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
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 do that,
then try and register in local mode. If that works, then try on your cluster.
Always making sure that your classpath has those details
Se