so I have module.py, and I want to be able to use it in a pig script. It has
no special imports or anything. I do have
@outputSchemaFunction("output:chararray)

In my pig script, I have this

register '/my/udf/location/udf.py' using jython as myfunc;

is there any reason why this wouldn't work? here is the error I get:

2010-12-27 16:29:41,288 [main] ERROR org.apache.pig.tools.grunt.Grunt -
ERROR 2998: Unhandled internal error. org/python/util/PythonInterpreter

Not the most instructive error, but is there anything more I need to be
doing to be able to use a python UDF?

As an aside, are simply python UDF's as efficient as Java ones? I like
Python a lot and love the idea of being able to UDF in it, but can use java
if necessary.

Reply via email to