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

Russell Jurney commented on PIG-2927:
-------------------------------------

Initial test works:

---

register 'test.rb' using jruby as myfuncs;
 
A = load 'test/data/pigunit/top_queries_input_data.txt';
B = foreach A generate myfuncs.concat($0, $1);

---

require 'rubygems'
require 'pigudf'
require 'mail'
class Myudfs < PigUdf
    def concat *input
        input.inject(:+)
    end
end


                
> SHIP and use JRuby gems in JRuby UDFs
> -------------------------------------
>
>                 Key: PIG-2927
>                 URL: https://issues.apache.org/jira/browse/PIG-2927
>             Project: Pig
>          Issue Type: New Feature
>          Components: parser
>    Affects Versions: 0.11
>         Environment: JRuby UDFs
>            Reporter: Russell Jurney
>            Assignee: Jonathan Coveney
>            Priority: Minor
>             Fix For: 0.11
>
>         Attachments: PIG-2927-0.patch, PIG-2927-1.patch, PIG-2927-2.patch, 
> PIG-2927-3.patch
>
>
> It would be great to use JRuby gems in JRuby UDFs without installing them on 
> all machines on the cluster. Some way to SHIP them automatically with the job 
> would be great.

--
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

Reply via email to