Grokbase Groups Pig user May 2011
Andrea - You may like to check this -
From: Andrea Leistra []
Sent: Wednesday, May 11, 2011 1:13 AM
Subject: Problems with example Python UDF

I am having problems getting the simple example Python UDFs from to work. Stack trace:

Pig Stack Trace
ERROR 2998: Unhandled internal error. org/python/util/PythonInterpreter

java.lang.NoClassDefFoundError: org/python/util/PythonInterpreter
at org.apache.pig.scripting.jython.JythonScriptEngine$Interpreter.(
at org.apache.pig.PigServer.registerCode(
at org.apache.pig.Main.main(
Caused by: java.lang.ClassNotFoundException: org.python.util.PythonInterpreter
at Method)
at java.lang.ClassLoader.loadClass(
at sun.misc.Launcher$AppClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
... 10 more
From what I have been able to see in the archives the most common cause of this error seems to be that jython.jar is not in the classpath; I've checked and mine is in the classpath. I have the full path to both jython.jar and in the pig script. Are there other causes that might produce this error? Python is in /usr/local/bin rather than /usr/bin; would that produce this, and if so how would I address the error?
Andrea Leistra

This e-mail message is authorized for use by the intended recipient only and may contain information that is privileged and confidential. If you received this message in error, please call us immediately at (425) 702-8808 and ask to speak to the message sender. Please do not copy, disseminate, or retain this message unless you are the intended recipient. In addition, to ensure the security of your data, please do not send any unencrypted credit card or personally identifiable information to this email address. Thank you.

Please do not print this email unless it is absolutely necessary.

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

Search Discussions

Discussion Posts


Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 3 of 3 | next ›
Discussion Overview
groupuser @
categoriespig, hadoop
postedMay 10, '11 at 7:44p
activeMay 11, '11 at 4:21a



site design / logo © 2022 Grokbase