Grokbase Groups Pig dev August 2010
FAQ
Support globbing for registering jars in pig script.
----------------------------------------------------

Key: PIG-1566
URL: https://issues.apache.org/jira/browse/PIG-1566
Project: Pig
Issue Type: Improvement
Affects Versions: 0.7.0
Reporter: Ravi Phulari
Fix For: 0.8.0


Currently user can not register pig jars with globing.

For example following register script will fail.

{quote}
register /etc/jars/*.jar
{quote}

It will be great if we can support such globing for registering jars.

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

Search Discussions

  • Olga Natkovich (JIRA) at Aug 27, 2010 at 8:27 pm
    [ https://issues.apache.org/jira/browse/PIG-1566?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Olga Natkovich updated PIG-1566:
    --------------------------------

    Fix Version/s: 0.9.0
    (was: 0.8.0)

    It is too late to do this for 0.8 since we are about to branch. We can consider this for 0.9 especially if we have volunteers for this work
    Support globbing for registering jars in pig script.
    ----------------------------------------------------

    Key: PIG-1566
    URL: https://issues.apache.org/jira/browse/PIG-1566
    Project: Pig
    Issue Type: Improvement
    Affects Versions: 0.7.0
    Reporter: Ravi Phulari
    Fix For: 0.9.0


    Currently user can not register pig jars with globing.
    For example following register script will fail.
    {quote}
    register /etc/jars/*.jar
    {quote}
    It will be great if we can support such globing for registering jars.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Olga Natkovich (JIRA) at Oct 11, 2010 at 9:21 pm
    [ https://issues.apache.org/jira/browse/PIG-1566?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Olga Natkovich reassigned PIG-1566:
    -----------------------------------

    Assignee: niraj rai
    Support globbing for registering jars in pig script.
    ----------------------------------------------------

    Key: PIG-1566
    URL: https://issues.apache.org/jira/browse/PIG-1566
    Project: Pig
    Issue Type: Improvement
    Affects Versions: 0.7.0
    Reporter: Ravi Phulari
    Assignee: niraj rai
    Fix For: 0.9.0


    Currently user can not register pig jars with globing.
    For example following register script will fail.
    {quote}
    register /etc/jars/*.jar
    {quote}
    It will be great if we can support such globing for registering jars.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • niraj rai (JIRA) at Oct 26, 2010 at 6:28 pm
    [ https://issues.apache.org/jira/browse/PIG-1566?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    niraj rai updated PIG-1566:
    ---------------------------

    Attachment: PIG_1566_0.patch

    Patch to support globbing.
    Support globbing for registering jars in pig script.
    ----------------------------------------------------

    Key: PIG-1566
    URL: https://issues.apache.org/jira/browse/PIG-1566
    Project: Pig
    Issue Type: Improvement
    Affects Versions: 0.7.0
    Reporter: Ravi Phulari
    Assignee: niraj rai
    Fix For: 0.9.0

    Attachments: PIG_1566_0.patch


    Currently user can not register pig jars with globing.
    For example following register script will fail.
    {quote}
    register /etc/jars/*.jar
    {quote}
    It will be great if we can support such globing for registering jars.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Olga Natkovich (JIRA) at Oct 26, 2010 at 7:11 pm
    [ https://issues.apache.org/jira/browse/PIG-1566?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12925093#action_12925093 ]

    Olga Natkovich commented on PIG-1566:
    -------------------------------------

    please, remember to add release notes to the ticket so that the information can be included in 0.9 documentation
    Support globbing for registering jars in pig script.
    ----------------------------------------------------

    Key: PIG-1566
    URL: https://issues.apache.org/jira/browse/PIG-1566
    Project: Pig
    Issue Type: Improvement
    Affects Versions: 0.7.0
    Reporter: Ravi Phulari
    Assignee: niraj rai
    Fix For: 0.9.0

    Attachments: PIG_1566_0.patch


    Currently user can not register pig jars with globing.
    For example following register script will fail.
    {quote}
    register /etc/jars/*.jar
    {quote}
    It will be great if we can support such globing for registering jars.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Daniel Dai (JIRA) at Oct 28, 2010 at 11:28 pm
    [ https://issues.apache.org/jira/browse/PIG-1566?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12925987#action_12925987 ]

    Daniel Dai commented on PIG-1566:
    ---------------------------------

    Some comments:
    1. What does line 440: "final String jName = tempJarName.replaceAll("\\*", ".*");" mean?
    2. If "register /homes/aaa/*.jar", the patch will also register all jars in classpath, which is wrong. We shall still use ClassLoader.getSystemResources.
    3. Use Apache format: no tab, always space
    Support globbing for registering jars in pig script.
    ----------------------------------------------------

    Key: PIG-1566
    URL: https://issues.apache.org/jira/browse/PIG-1566
    Project: Pig
    Issue Type: Improvement
    Affects Versions: 0.7.0
    Reporter: Ravi Phulari
    Assignee: niraj rai
    Fix For: 0.9.0

    Attachments: PIG_1566_0.patch


    Currently user can not register pig jars with globing.
    For example following register script will fail.
    {quote}
    register /etc/jars/*.jar
    {quote}
    It will be great if we can support such globing for registering jars.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • niraj rai (JIRA) at Nov 2, 2010 at 10:30 pm
    [ https://issues.apache.org/jira/browse/PIG-1566?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    niraj rai updated PIG-1566:
    ---------------------------

    Attachment: PIG_1566_1.patch

    Modified based on daniel comment.
    Support globbing for registering jars in pig script.
    ----------------------------------------------------

    Key: PIG-1566
    URL: https://issues.apache.org/jira/browse/PIG-1566
    Project: Pig
    Issue Type: Improvement
    Affects Versions: 0.7.0
    Reporter: Ravi Phulari
    Assignee: niraj rai
    Fix For: 0.9.0

    Attachments: PIG_1566_0.patch, PIG_1566_1.patch


    Currently user can not register pig jars with globing.
    For example following register script will fail.
    {quote}
    register /etc/jars/*.jar
    {quote}
    It will be great if we can support such globing for registering jars.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Daniel Dai (JIRA) at Nov 23, 2010 at 1:48 am
    [ https://issues.apache.org/jira/browse/PIG-1566?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Daniel Dai updated PIG-1566:
    ----------------------------

    Description:
    Currently user can not register pig jars with globing.

    For example following register script will fail.

    {quote}
    register /etc/jars/*.jar
    {quote}

    It will be great if we can support such globing for registering jars.

    Release notes:
    We allow globbing in register statement. User can use "*" to denote a globbing, eg:
    register key*.jar
    register /home/jarpath/key*.jar
    register jars/key*.jar

    The path can be absolute path or relative path start with working directory.

    Note globbing does not further search in classpath as non-globbing case does, eg:
    "register key1234.jar" works if key1234.jar in classpath, but not in working directory, however,
    "register key*.jar" will not locate key1234.jar in this case.


    was:
    Currently user can not register pig jars with globing.

    For example following register script will fail.

    {quote}
    register /etc/jars/*.jar
    {quote}

    It will be great if we can support such globing for registering jars.

    Support globbing for registering jars in pig script.
    ----------------------------------------------------

    Key: PIG-1566
    URL: https://issues.apache.org/jira/browse/PIG-1566
    Project: Pig
    Issue Type: Improvement
    Affects Versions: 0.7.0
    Reporter: Ravi Phulari
    Assignee: niraj rai
    Fix For: 0.9.0

    Attachments: PIG_1566_0.patch, PIG_1566_1.patch


    Currently user can not register pig jars with globing.
    For example following register script will fail.
    {quote}
    register /etc/jars/*.jar
    {quote}
    It will be great if we can support such globing for registering jars.
    Release notes:
    We allow globbing in register statement. User can use "*" to denote a globbing, eg:
    register key*.jar
    register /home/jarpath/key*.jar
    register jars/key*.jar
    The path can be absolute path or relative path start with working directory.
    Note globbing does not further search in classpath as non-globbing case does, eg:
    "register key1234.jar" works if key1234.jar in classpath, but not in working directory, however,
    "register key*.jar" will not locate key1234.jar in this case.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupdev @
categoriespig, hadoop
postedAug 25, '10 at 5:38p
activeNov 23, '10 at 1:48a
posts8
users1
websitepig.apache.org

1 user in discussion

Daniel Dai (JIRA): 8 posts

People

Translate

site design / logo © 2022 Grokbase