[ https://issues.apache.org/jira/browse/PIG-1479?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12909898#action_12909898 ]
Julien Le Dem commented on PIG-1479: ------------------------------------ The -g parameter on the command line should take two parameters, the scripting implementation instance name and the script itself. That way we can have several scripting implementations. {noformat} java -cp pig.jar:<jython jar> org.apache.pig.Main -x local -g jython script/tc.py {noformat} {code} case GREEK: { ScriptEngine scriptEngine = ScriptEngine.getInstance(instanceName); scriptEngine.run(new PigServer(pigContext), file); return ReturnCode.SUCCESS; } {code} > Embed Pig in scripting languages > -------------------------------- > > Key: PIG-1479 > URL: https://issues.apache.org/jira/browse/PIG-1479 > Project: Pig > Issue Type: New Feature > Reporter: Julien Le Dem > Attachments: PIG-1479.patch, PIG-1479_2.patch, pig-greek-test.tar, > pig-greek.tgz > > > It should be possible to embed Pig calls in a scripting language and let > functions defined in the same script available as UDFs. > This is a spin off of https://issues.apache.org/jira/browse/PIG-928 which > lets users define UDFs in scripting languages. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.