Go to http://jython.org/downloads.html and download jython version 2.5.2 Follow the installation instructions at http://wiki.python.org/jython/InstallationInstructions to create a 'Standalone' jar. Place the resulting jython.jar file in the /usr/lib/pig/lib
scott. On Mon, Apr 23, 2012 at 12:00 PM, Devi Kumarappan <[email protected]> wrote: > Hi, > > I am using cduh3 distributionin the hadoop cluster . My python udf seems to > work > fine if it does not import other python modules, but fails with ERROR > org.apache.pig.tools.grunt.Grunt - ERROR 2997: Unable to recreate exception > from > backed error: java.io.IOException: Deserialization error: could not > instantiate > 'org.apache.pig.scripting.jython.JythonFunction' with arguments if I add > "import re" in the UDF. > > When I digged around i found that it has been fixed in pig0.10. > https://issues.apache.org/jira/browse/PIG-1824 > > But, CDUH3 has pig 0.8. Has anyody encountered this problem? Is there a work > around for this in Pig 0.8 or is it possible to update to pig 0.10 in CDUH3? > > Thanks, Devi
