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. myPatch.patch
        2 kB
        Swathi V
      2. build.xml
        7 kB
        Swathi V
      3. error.txt
        37 kB
        Swathi V

        Activity

        Hide
        Swathi V added a comment -

        Error thrown after executing
        ant jar

        Show
        Swathi V added a comment - Error thrown after executing ant jar
        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" />
        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.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development