[ https://issues.apache.org/jira/browse/PIG-2927?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13462392#comment-13462392 ]
Russell Jurney commented on PIG-2927: ------------------------------------- Moving from email. http://stackoverflow.com/a/10083594/13969 shows you the installed path of a given gem. jruby -S gem install mail jirb require 'rubygems' spec = Gem::Specification.find_by_name("mail") spec.gem_dir But really... we can just use Bundler right? Its perfect - it expects a user to create their own gem environment. http://gembundler.com/ Then there is a list of gems in a jruby file, and we can go through that list and get the installed location in our bundler environment (which is likely to be in a subdirectory). > 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 > Reporter: Russell Jurney > Priority: Minor > > 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