hadoop-pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sameer M (JIRA)" <j...@apache.org>
Subject [jira] Created: (PIG-1485) Need a means to register jars in PigLatin scripts without using the "register" keyword.
Date Wed, 07 Jul 2010 21:52:49 GMT
Need a means to register jars in PigLatin scripts without using the "register" keyword.

                 Key: PIG-1485
                 URL: https://issues.apache.org/jira/browse/PIG-1485
             Project: Pig
          Issue Type: New Feature
            Reporter: Sameer M


Currently to instruct Pig to add a jar to its classpath and also make it available to the
map/reduce jobs, we have use the "register" keyword with path to a jar.

This problem with this approach is that it hardcodes the pig latin script to a specific jar
version thus making the pig latin script forward incompatible to any version upgrades to that
I can see the value for this keyword in an interactive session i.e. when using the Grunt shell
however feels like this is an incorrect thing to do in PigLatin script files.

Would be great if there was an alternative method to expose a jar to Pig such as using the
This would help scripts do away with the need to embed registers in them and make them agnostic
to jar file names.

The benefit of using the classpath is that there are lots of hooks to configure it from different
environments e.g. $CLASSPATH when invoked from shell, testing frameworks like maven and junit
can also inject stuff into classpath and so can frameworks like Oozie.


This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message