[ 
https://issues.apache.org/jira/browse/PIG-1653?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Daniel Dai resolved PIG-1653.
-----------------------------

      Resolution: Fixed
    Hadoop Flags: [Reviewed]

Patch committed to both trunk and 0.8 branch.

> Scripting UDF fails if the path to script is an absolute path
> -------------------------------------------------------------
>
>                 Key: PIG-1653
>                 URL: https://issues.apache.org/jira/browse/PIG-1653
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.8.0
>            Reporter: Daniel Dai
>            Assignee: Daniel Dai
>             Fix For: 0.8.0
>
>         Attachments: PIG-1653-1.patch, PIG-1653-2.patch, PIG-1653-3.patch
>
>
> The following script fail:
> {code}
> register '/homes/jianyong/pig/aaa/scriptingudf.py' using jython as myfuncs;
> a = load '/user/pig/tests/data/singlefile/studenttab10k' using PigStorage() 
> as (name, age, gpa:double);
> b = foreach a generate myfuncs.square(gpa);
> dump b;
> {code}
> If we change the register to use relative path (such as 
> "aaa/scriptingudf.py"), it success.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to