[
https://issues.apache.org/jira/browse/PIG-11?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12542910
]
Benjamin Reed commented on PIG-11:
----------------------------------
The patch looks good. May I suggest a slightly different approach?
A resource on the classpath may not be a file. It may be from a URL or packaged
inside another Jar file.
Perhaps it would be better to pass a URL to the JarManager rather than a
filename. That way you simply getResource() and you don't have to convert to a
file, which will simplify your code. The downside is that you must change the
JarManager to use URL instead of Strings representing filenames, but I think it
is much cleaner in the end.
> Pig command - add search path for UDF .jar files
> ------------------------------------------------
>
> Key: PIG-11
> URL: https://issues.apache.org/jira/browse/PIG-11
> Project: Pig
> Issue Type: Improvement
> Components: impl
> Reporter: Olga Natkovich
> Assignee: Antonio Magnaghi
> Priority: Minor
> Attachments: Pig-BUG-11-Tests, Pig-BUG-11.patch
>
>
> Add a mechanism so that invocations of:
> register my.jar;
> will search not only the local directory but a set of paths. This could
> simply be classpath.
> This will permit users to have build trees of UDFs that commonly share
> across different piglets
> without having to copy the jar locally to each directory and without
> having to use absolute
> pathnames to refer to the files.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.