[ https://issues.apache.org/jira/browse/PIG-3226?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13629873#comment-13629873 ]
Mathias Herberts commented on PIG-3226: --------------------------------------- The Groovy script engine needs a file path to be able to interpret the file. The easiest way I've found to provide that is to retrieve the script as stream and then create a temp file. > Groovy UDF support may fail to load script under some circumstances > ------------------------------------------------------------------- > > Key: PIG-3226 > URL: https://issues.apache.org/jira/browse/PIG-3226 > Project: Pig > Issue Type: Bug > Affects Versions: 0.11, 0.11.1 > Reporter: Mathias Herberts > Assignee: Mathias Herberts > Attachments: PIG-3226.patch, PIG-3226.patch-2 > > > When running in M/R mode, scripts may fail to load, this is due to the > GroovyScriptEngine looking for the script under the attempt's current working > dir which does not contain the script. > The attached patch fixes that by copying the script to a place where > GroovyScriptEngine will be able to find it. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira