You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Olga Natkovich (JIRA)" <ji...@apache.org> on 2007/11/02 03:45:50 UTC

[jira] Created: (PIG-11) Pig command - add search path for UDF .jar files

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
            Priority: Minor


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.


[jira] Commented: (PIG-11) Pig command - add search path for UDF .jar files

Posted by "Benjamin Reed (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIG-11?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12540211 ] 

Benjamin Reed commented on PIG-11:
----------------------------------

When you say search the classpath are you talking about getResourceAsString, or are you actually going to try to parse the classpath property? I'm thinking it's the former, but I just wanted to check.

> 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
>            Priority: Minor
>
> 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.


[jira] Commented: (PIG-11) Pig command - add search path for UDF .jar files

Posted by "Olga Natkovich (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIG-11?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12545910 ] 

Olga Natkovich commented on PIG-11:
-----------------------------------

Antonio, I tried to apply patch to PigServer but it was rejected. My guess, this is because of formating issues - I see a lot of ^Ms in there. Could you attach your PigServer.java to the bug.

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


[jira] Commented: (PIG-11) Pig command - add search path for UDF .jar files

Posted by "Olga Natkovich (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIG-11?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12540237 ] 

Olga Natkovich commented on PIG-11:
-----------------------------------

Antonio, your approach looks good. You are right, we don't need to explicitely search in the current working dir. I was unable to assign the bug to you because you were not in the list of choices. Maybe because your account is too new. Once you name shows up in the list, you can assign the bug to yourself.

Thanks for looking into this issue!

> 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
>            Priority: Minor
>
> 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.


[jira] Commented: (PIG-11) Pig command - add search path for UDF .jar files

Posted by "Antonio Magnaghi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIG-11?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12540074 ] 

Antonio Magnaghi commented on PIG-11:
-------------------------------------

Olga,

I am looking into a fix for this. Can you please assign this bug to me?

One possible implementation could be:

1.) if the user passes an absolute path to the jar to register, look for that file (irrespective of the CLASSPATH) and if we fail to locate the jar, just fail.

2.) if the user does not pass an absolute path, do a sequencial search on each element in CLASSPATH (for those elements in CLASSPATH that are not jar's): append the user passed path to CLASSPATH elements and see if we can locate the jar. We stop the search the first time we have a match. If we don't find any match, we fail.

As for the search in the local directory first, there are two possible approaches:

- on one side if the user wants to search in the local directory first, he/she should set the current directory (".") at the very beginning of the CLASSPATH.

- on the other side, one can say that expecting the CLASSPATH to contain the current directory as a prefix may be not compatible with what current users expect. I.e. they expect the search to start with the current local dir. So we could preserve that.

Thanks,
-a.

> 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
>            Priority: Minor
>
> 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.


[jira] Commented: (PIG-11) Pig command - add search path for UDF .jar files

Posted by "Olga Natkovich (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIG-11?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12545554 ] 

Olga Natkovich commented on PIG-11:
-----------------------------------

If I don't see any objections by tomorrow, I will commit the changes.

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


[jira] Commented: (PIG-11) Pig command - add search path for UDF .jar files

Posted by "Antonio Magnaghi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIG-11?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12540231 ] 

Antonio Magnaghi commented on PIG-11:
-------------------------------------

Yes, would use the system class loader to retrieve the resource (namely the jar file name) and see if we are able to locate it.

> 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
>            Priority: Minor
>
> 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.


[jira] Commented: (PIG-11) Pig command - add search path for UDF .jar files

Posted by "Benjamin Francisoud (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIG-11?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12563093#action_12563093 ] 

Benjamin Francisoud commented on PIG-11:
----------------------------------------

I think Fix Version is 0.1.0

> 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: CHANGES.txt, JarManager.java, Pig-BUG-11-Tests, Pig-BUG-11.patch, PigContext.java, PigServer.java, TestPigServer.java
>
>
> 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.


[jira] Updated: (PIG-11) Pig command - add search path for UDF .jar files

Posted by "Antonio Magnaghi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-11?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Antonio Magnaghi updated PIG-11:
--------------------------------

    Attachment: Pig-BUG-11.patch

Attaching patch for propsed change.

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


[jira] Commented: (PIG-11) Pig command - add search path for UDF .jar files

Posted by "Benjamin Reed (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIG-11?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12545365 ] 

Benjamin Reed commented on PIG-11:
----------------------------------

Perfect! Looks good.

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


[jira] Updated: (PIG-11) Pig command - add search path for UDF .jar files

Posted by "Antonio Magnaghi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-11?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Antonio Magnaghi updated PIG-11:
--------------------------------

    Attachment:     (was: Pig-BUG-11-Tests)

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


[jira] Resolved: (PIG-11) Pig command - add search path for UDF .jar files

Posted by "Olga Natkovich (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-11?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Olga Natkovich resolved PIG-11.
-------------------------------

    Resolution: Fixed

Committed the changes

> 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: CHANGES.txt, JarManager.java, Pig-BUG-11-Tests, Pig-BUG-11.patch, PigContext.java, PigServer.java, TestPigServer.java
>
>
> 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.


[jira] Updated: (PIG-11) Pig command - add search path for UDF .jar files

Posted by "Antonio Magnaghi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-11?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Antonio Magnaghi updated PIG-11:
--------------------------------

    Attachment: TestPigServer.java
                PigServer.java

> 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: CHANGES.txt, JarManager.java, Pig-BUG-11-Tests, Pig-BUG-11.patch, PigContext.java, PigServer.java, TestPigServer.java
>
>
> 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.


[jira] Updated: (PIG-11) Pig command - add search path for UDF .jar files

Posted by "Antonio Magnaghi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-11?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Antonio Magnaghi updated PIG-11:
--------------------------------

    Attachment: Pig-BUG-11-Tests

Attaching results from running test suite.

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


[jira] Updated: (PIG-11) Pig command - add search path for UDF .jar files

Posted by "Antonio Magnaghi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-11?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Antonio Magnaghi updated PIG-11:
--------------------------------

    Attachment:     (was: Pig-BUG-11.patch)

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


[jira] Updated: (PIG-11) Pig command - add search path for UDF .jar files

Posted by "Antonio Magnaghi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-11?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Antonio Magnaghi updated PIG-11:
--------------------------------

    Attachment: PigContext.java
                JarManager.java
                CHANGES.txt

> 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: CHANGES.txt, JarManager.java, Pig-BUG-11-Tests, Pig-BUG-11.patch, PigContext.java
>
>
> 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.


[jira] Commented: (PIG-11) Pig command - add search path for UDF .jar files

Posted by "Olga Natkovich (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIG-11?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12539708 ] 

Olga Natkovich commented on PIG-11:
-----------------------------------

What needs to happen here is if we failed to open a file passed in register, try look for it in the cloasspath.

> 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
>            Priority: Minor
>
> 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.


[jira] Commented: (PIG-11) Pig command - add search path for UDF .jar files

Posted by "Benjamin Reed (JIRA)" <ji...@apache.org>.
    [ 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.


[jira] Assigned: (PIG-11) Pig command - add search path for UDF .jar files

Posted by "Olga Natkovich (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-11?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Olga Natkovich reassigned PIG-11:
---------------------------------

    Assignee: Antonio Magnaghi

Owen showed to me how to add you to the list.

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


[jira] Updated: (PIG-11) Pig command - add search path for UDF .jar files

Posted by "Antonio Magnaghi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-11?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Antonio Magnaghi updated PIG-11:
--------------------------------

    Attachment: Pig-BUG-11-Tests
                Pig-BUG-11.patch

Made the fix more general as Ben suggested.

- extraJars is now a list of URLs, not Strings anymore
- the Jar Manager, in mergeJar, loads a resource either from a string or a URL
- PigServer, in registerJar, locates the URL for the desired resource.

Attaching here:
    the code (changes in src and the new test file); 
    the result of running the whole test suite.

-a.

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