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

Pig MapReduceLauncher does not use jars in register statement

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.8.0
    • None
    • None
    • Reviewed

    Description

      If my Pig StorFunc has its own OutputFormat class then Pig MapReducelauncher will try to instantiate it before
      launching the mapreduce job and fail with ClassNotFoundException.

      This happens because Pig MapReduce launcher uses its own classloader and ignores the classes in the jars in the
      register statement.

      The effect is that the jars not only have to be in "register " statement in the script but also in the pig
      classpath with the -classpath tag.

      This can be remedied by making the Pig MapReduceLauncher constructing a classloader that includes the registered jars
      and using that to instantiate the OutputFormat class.

      Attachments

        1. PIG-1489_1.patch
          7 kB
          Richard Ding
        2. PIG-1489.patch
          3 kB
          Richard Ding
        3. PIG-1489.patch
          3 kB
          Richard Ding

        Activity

          People

            rding Richard Ding
            olgan Olga Natkovich
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: