Pig
  1. Pig
  2. PIG-2816

piggybank.jar not getting created with the current build.xml

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Won't Fix
    • Affects Version/s: 0.9.2
    • Fix Version/s: 0.9.2
    • Component/s: piggybank
    • Labels:
    • Environment:

      Ubuntu 11.04

    • Patch Info:
      Patch Available
    • Release Note:
      Hide
      Fixes the build issue for generating piggybank.jar
      Show
      Fixes the build issue for generating piggybank.jar

      Description

      The current build.xml inside contrib/piggybank/java Fails and does not generate the piggybank.jar

      1. build.xml
        7 kB
        Swathi V
      2. error.txt
        37 kB
        Swathi V
      3. myPatch.patch
        2 kB
        Swathi V

        Activity

        Swathi V created issue -
        Hide
        Swathi V added a comment -

        Error thrown after executing
        ant jar

        Show
        Swathi V added a comment - Error thrown after executing ant jar
        Swathi V made changes -
        Field Original Value New Value
        Attachment error.txt [ 12536410 ]
        Hide
        Swathi V added a comment -

        Attached build.xml fixes the issue.
        Changed the property value.

        <!-- build properties -->
        ...
        <property name="pigjar-withouthadoop" value="../../../pig-0.9.2-withouthadoop.jar" />

        Show
        Swathi V added a comment - Attached build.xml fixes the issue. Changed the property value. <!-- build properties --> ... <property name="pigjar-withouthadoop" value="../../../pig-0.9.2-withouthadoop.jar" />
        Swathi V made changes -
        Attachment build.xml [ 12536414 ]
        Swathi V made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Release Note Fixes the build issue for generating piggybank.jar
        Fix Version/s 0.9.2 [ 12318248 ]
        Swathi V made changes -
        Attachment myPatch.patch [ 12536448 ]
        Hide
        Daniel Dai added a comment -

        You need to do top level "ant" + "ant compile-test" before compiling piggybank.

        Show
        Daniel Dai added a comment - You need to do top level "ant" + "ant compile-test" before compiling piggybank.
        Hide
        Swathi V added a comment -

        Hi Daniel,
        I did a top level ant, ant compile-test. But it was not able to create piggybank.jar because it was pointing to pig-withouthadoop.jar and so couldn't find the classes in it and the created was pig-0.9.2-withouthadoop.jar.
        Correct me if I have done anything wrong!
        Thank You.

        Show
        Swathi V added a comment - Hi Daniel, I did a top level ant, ant compile-test. But it was not able to create piggybank.jar because it was pointing to pig-withouthadoop.jar and so couldn't find the classes in it and the created was pig-0.9.2-withouthadoop.jar. Correct me if I have done anything wrong! Thank You.
        Hide
        Alan Gates added a comment -

        Swathi, thanks for your work on this. If you do 'ant jar-withouthadoop' as well before compiling piggybank then it works. We don't want to hardwire version numbers in build.xml as it will break if there are future releases from this branch. I am marking this as won't fix since there is an easy work around.

        Show
        Alan Gates added a comment - Swathi, thanks for your work on this. If you do 'ant jar-withouthadoop' as well before compiling piggybank then it works. We don't want to hardwire version numbers in build.xml as it will break if there are future releases from this branch. I am marking this as won't fix since there is an easy work around.
        Alan Gates made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Resolution Won't Fix [ 2 ]
        Swathi V made changes -
        Summary piggybank.jar not getting created with the current buil.xml piggybank.jar not getting created with the current build.xml
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Patch Available Patch Available
        3h 9m 1 Swathi V 13/Jul/12 21:27
        Patch Available Patch Available Resolved Resolved
        80d 20h 16m 1 Alan Gates 02/Oct/12 17:44

          People

          • Assignee:
            Unassigned
            Reporter:
            Swathi V
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development