The question refers to a local pig 0.11.1 run, but with a usage prospect eventually on EMR's pig. I'm trying to write a jython UDF with an import of the 're' module, and I get this after I register 'xyz.py' with jython as xyz
:
2013-11-06 13:59:47,259 [main] WARN org.apache.pig.scripting.jython.JythonScriptEngine - module file does not exist: re, /home/amit/Servers/Pig/pig-0.11.1/lib/jython-standalone-2.5.3.jar/Lib/re.py
The udf is just a simple:
import re
I have PIG_HOME
setup in my .bashrc and the question is basically what's wrong ? It's worthwhile noting that the below example works
import sys
print(sys.path)
Thanks, Amit