Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-1566

Support globbing for registering jars in pig script.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.7.0
    • 0.9.0
    • None
    • None
    • Reviewed
    • Hide
      User can use globbing in register statement. Pig will search for matching jars in local file system (either relative path or absolute path). eg:

      register /homes/user/pig/*.jar
      register *.jar
      register jars/*.jar

      Relative path is relative to user's working directory.

      Globbing does not support remote file system such as hdfs, s3 (register without globbing do).

      The behavior for register without globbing remains the same.
      Show
      User can use globbing in register statement. Pig will search for matching jars in local file system (either relative path or absolute path). eg: register /homes/user/pig/*.jar register *.jar register jars/*.jar Relative path is relative to user's working directory. Globbing does not support remote file system such as hdfs, s3 (register without globbing do). The behavior for register without globbing remains the same.

    Description

      Currently user can not register pig jars with globing.

      For example following register script will fail.

      register /etc/jars/*.jar

      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.

      Attachments

        1. PIG_1566_0.patch
          6 kB
          niraj rai
        2. PIG_1566_1.patch
          4 kB
          niraj rai
        3. PIG-1566-2.patch
          10 kB
          Daniel Dai

        Issue Links

          Activity

            People

              daijy Daniel Dai
              raviphulari Ravi Phulari
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: