You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Daniel Dai (JIRA)" <ji...@apache.org> on 2014/02/19 19:32:26 UTC

[jira] [Updated] (PIG-3769) Scripting UDF is broken after PIG-3629

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

Daniel Dai updated PIG-3769:
----------------------------

    Attachment: PIG-3769-0.patch

Attach a quick fix.

It is better don't not to wrap script file into job.jar, this will make job.jar reusable across jobs. That might worth a separate Jira.

> Scripting UDF is broken after PIG-3629
> --------------------------------------
>
>                 Key: PIG-3769
>                 URL: https://issues.apache.org/jira/browse/PIG-3769
>             Project: Pig
>          Issue Type: Sub-task
>          Components: tez
>    Affects Versions: tez-branch
>            Reporter: Cheolsoo Park
>            Assignee: Rohini Palaniswamy
>             Fix For: tez-branch
>
>         Attachments: PIG-3769-0.patch
>
>
> This is a regression from "PIG-3629\-reopen\-1.patch". I see tasks failing with the following error-
> {code}
> Caused by: java.lang.IllegalStateException: Could not initialize interpreter (from file system or classpath) with /tmp/pig7551540624891944125tmp/nflx_common_datetime.py
> 	at org.apache.pig.scripting.ScriptEngine.getScriptAsStream(ScriptEngine.java:163)
> 	at org.apache.pig.scripting.jython.JythonScriptEngine$Interpreter.init(JythonScriptEngine.java:158)
> 	at org.apache.pig.scripting.jython.JythonScriptEngine.getFunction(JythonScriptEngine.java:388)
> 	at org.apache.pig.scripting.jython.JythonFunction.<init>(JythonFunction.java:55)
> 	... 72 more
> {code}
> Looks like the local path of a shipped script file on the slave nodes is not correct.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)