[ 
https://issues.apache.org/jira/browse/PIG-1653?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12922207#action_12922207
 ] 

Thejas M Nair commented on PIG-1653:
------------------------------------

+1

> 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