Climbs_lika_Spyder
Climbs_lika_Spyder

Reputation: 6724

How do I tell Pig what a PyObject is?

I have a Pig script that uses a Python UDF. It worked two days ago, but then someone updated Apache Pig to version 0.11.0-cdh4.3.0. Since then I get this error:

ERROR 2998: Unhandled internal error. org/python/core/PyObject

I have tried having the HADOOP_CLASSPATH, as mentioned in this post, updated with the Jython jar, but that does not change anything. I did log out and back in, but the same error happens. All of the scripts running Java UDFs work fine. I also tried registering the jython.jar in my script. Any help would be appreciated!

Upvotes: 2

Views: 168

Answers (1)

romain-nio
romain-nio

Reputation: 1205

Try adding $PIG_HOME/lib/jython.jar to your $PIG_CLASSPATH environment variable.

Upvotes: 1

Related Questions