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

Fix mvn-install ant target

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.16.0
    • Fix Version/s: 0.16.1
    • Component/s: build
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      The mvn-install ant target which allows pig artifacts to be placed in the local repository became broken by PIG-4499 in Pig 0.15. That patch removed the mvn-jar target which the mvn-install target had dependent on. Instead, the jar-h12 target was used as a replacement. However, this target is insufficient as it does not move built jars to their expected output locations and does not handle well the case where we are building Pig only for Hadoop 2 via the -Dhadoopversion=23 option.

      There is an important detail to make note. The jar-h12 target uses propertyreset scripts to change the hadoopversion property before it calls ant targets to change the behavior of the ant targets. These propertyreset scripts do nothing when the -Dhadoopversion option is provided through the command line. This is because ant does not allow overwriting user properties.

        Attachments

        1. PIG-4942.4.patch
          0.9 kB
          Peter Slawski
        2. PIG-4942.3.patch
          0.9 kB
          Jianyong Dai
        3. PIG-4942.2.patch
          3 kB
          Peter Slawski
        4. PIG-4942.1.patch
          4 kB
          Peter Slawski

          Activity

            People

            • Assignee:
              petersla Peter Slawski
              Reporter:
              petersla Peter Slawski
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: