I can actually still get it to work with a relative directory not involving
'..'
For instance
  Register 'test/simple.py' as myNamespace;

where test is a subdir in the working directory.

On Fri, Jun 3, 2011 at 1:37 AM, Alan Gates <[email protected]> wrote:

> I ran into this and found that if my python script was in my working
> directory on the front end it worked. See PIG-2101.
>
> Alan.
>
> On Jun 2, 2011, at 15:56, Daniel Eklund <[email protected]> wrote:
>
> > Does anyone have followup to this problem?
> > http://www.mail-archive.com/[email protected]/msg01502.html
> >
> > I am getting:
> > Caused by: java.io.IOException: Deserialization error: could not
> instantiate
> > 'org.apache.pig.scripting.jython.JythonFunction' with arguments
> > '[/tank/deklund/tvpig/lib/travelocity-udfs.py, dateRelev
> > ant]'
> >        at
> >
> org.apache.pig.impl.util.ObjectSerializer.deserialize(ObjectSerializer.java:55)
> >        at
> >
> org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigMapReduce$Reduce.setup(PigMapReduce.java:299)
> >        ... 8 more
> > Caused by: java.lang.RuntimeException: could not instantiate
> > 'org.apache.pig.scripting.jython.JythonFunction' with arguments
> > '[/tank/deklund/tvpig/lib/travelocity-udfs.py, dateRelevant]'
> >        at
> >
> org.apache.pig.impl.PigContext.instantiateFuncFromSpec(PigContext.java:502)
> >        at
> >
> org.apache.pig.backend.hadoop.executionengine.physicalLayer.expressionOperators.POUserFunc.instantiateFunc(POUserFunc.java:109)
> >        at
> >
> org.apache.pig.backend.hadoop.executionengine.physicalLayer.expressionOperators.POUserFunc.readObject(POUserFunc.java:451)
> >        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >        at
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >        at
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >        at java.lang.reflect.Method.invoke(Method.java:597)
> >        at
> > java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974)
> >        at
> > java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1848)
> >        at
> > java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
>

Reply via email to