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

Rohini Palaniswamy updated PIG-2761:
------------------------------------

    Attachment: PIG-2761-initial.patch

Initial patch for review. Reverted 2745 as removing leading / is moved to 
PigContext itself. Easier to do that in PigContext.addScriptFile() than repeat 
it in each of the ScriptEngine implementations and PigServer. Changed the 
ScriptEngine.getScriptAsStream() to try all classloaders. 

Working on writing a e2e test for this.

This patch does not address 2760. Trying to see if there is a easy way to 
accomodate that in this patch without impacting the changes for s3 PIG-2623. 
The easier thing would be to add two copies of the script file to the jar - one 
with absolute path and one relative path but it is not efficient. 
                
> With hadoop23 importing modules inside python script does not work
> ------------------------------------------------------------------
>
>                 Key: PIG-2761
>                 URL: https://issues.apache.org/jira/browse/PIG-2761
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.10.1
>            Reporter: Rohini Palaniswamy
>            Assignee: Rohini Palaniswamy
>         Attachments: PIG-2761-initial.patch
>
>
> Because unjar has been removed from 23, registering scripts has issue. 
> PIG-2745 addresses the issue of registering scripts with pig. But if the 
> registered py script imports other modules then it does not work. Steps to 
> reproduce the issue in 
> https://issues.apache.org/jira/browse/PIG-2745?focusedCommentId=13396965&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13396965

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to