You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Matthew Hayes (JIRA)" <ji...@apache.org> on 2012/07/03 08:54:53 UTC

[jira] [Created] (PIG-2785) NoClassDefFoundError after upgrading to pig 0.10.0 from 0.9.0

Matthew Hayes created PIG-2785:
----------------------------------

             Summary: NoClassDefFoundError after upgrading to pig 0.10.0 from 0.9.0
                 Key: PIG-2785
                 URL: https://issues.apache.org/jira/browse/PIG-2785
             Project: Pig
          Issue Type: Bug
    Affects Versions: 0.10.0
            Reporter: Matthew Hayes


It appears that the versions in the pom for pig 0.10.0 are inconsistent with the versions specified in the ivy file used to build pig.  I am building a separate project, and I am getting pig and its dependencies using ivy.  

Looking in ivy.xml in the pig 0.10.0 release:

    <dependency org="org.apache.avro" name="avro" rev="${avro.version}"
      conf="compile->default;checkstyle->master"/>

...

    <dependency org="org.codehaus.jackson" name="jackson-mapper-asl" rev="${jackson.version}"
      conf="compile->master"/>
    <dependency org="org.codehaus.jackson" name="jackson-core-asl" rev="${jackson.version}"
      conf="compile->master"/>

Where avro.version is avro.version=1.5.3 and jackson.version=1.7.3.

However, in the pom.xml for pig 0.10.0:

      <groupId>org.apache.hadoop</groupId>
      <artifactId>avro</artifactId>
      <version>1.3.2</version>

And when I look up the pom for org.apache.hadoop's avro 1.3.2 in the central repository, I see a version of jackson inconsistent with what pig was compiled with:

    <dependency>
      <groupId>org.codehaus.jackson</groupId>
      <artifactId>jackson-mapper-asl</artifactId>
      <version>1.4.2</version>
      <scope>compile</scope>
    </dependency>

It's 1.4.2, not 1.7.3. 

Below is my ivy.xml.  It's the same as what I used for 0.9.0 but I changed the pig version to 0.10.0.

<ivy-module version="2.0">
    <info organisation="datafu" module="datafu"/>
    <dependencies>
        <dependency org="org.apache.pig" name="pig" rev="0.10.0"/>
        <dependency org="it.unimi.dsi" name="fastutil" rev="6.3"/>
        <dependency org="joda-time" name="joda-time" rev="1.6"/>
        <dependency org="org.apache.commons" name="commons-math" rev="2.1"/>
        <dependency org="commons-io" name="commons-io" rev="1.4"/>
        <dependency org="org.apache.hadoop" name="hadoop-core" rev="0.20.2"/>
        <dependency org="org.testng" name="testng" rev="6.2"/>
        <dependency org="com.google.guava" name="guava" rev="r06" />
          
        <!-- needed for pigunit to work -->
        <dependency org="log4j" name="log4j" rev="1.2.14" />
        <dependency org="jline" name="jline" rev="0.9.94" />
        <dependency org="org.antlr" name="antlr" rev="3.2" />
    </dependencies>
</ivy-module>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (PIG-2785) NoClassDefFoundError after upgrading to pig 0.10.0 from 0.9.0

Posted by "Santhosh Srinivasan (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-2785?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Santhosh Srinivasan resolved PIG-2785.
--------------------------------------

    Resolution: Fixed

Please assign the ticket to Matthew when the release is cut. I could not find him in the assignee list.
                
> NoClassDefFoundError after upgrading to pig 0.10.0 from 0.9.0
> -------------------------------------------------------------
>
>                 Key: PIG-2785
>                 URL: https://issues.apache.org/jira/browse/PIG-2785
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.10.0
>            Reporter: Matthew Hayes
>             Fix For: 0.11
>
>         Attachments: avro_version_fix.diff
>
>
> It appears that the versions in the pom for pig 0.10.0 are inconsistent with the versions specified in the ivy file used to build pig.  I am building a separate project, and I am getting pig and its dependencies using ivy.  
> Looking in ivy.xml in the pig 0.10.0 release:
>     <dependency org="org.apache.avro" name="avro" rev="${avro.version}"
>       conf="compile->default;checkstyle->master"/>
> ...
>     <dependency org="org.codehaus.jackson" name="jackson-mapper-asl" rev="${jackson.version}"
>       conf="compile->master"/>
>     <dependency org="org.codehaus.jackson" name="jackson-core-asl" rev="${jackson.version}"
>       conf="compile->master"/>
> Where avro.version is avro.version=1.5.3 and jackson.version=1.7.3.
> However, in the pom.xml for pig 0.10.0:
>       <groupId>org.apache.hadoop</groupId>
>       <artifactId>avro</artifactId>
>       <version>1.3.2</version>
> And when I look up the pom for org.apache.hadoop's avro 1.3.2 in the central repository, I see a version of jackson inconsistent with what pig was compiled with:
>     <dependency>
>       <groupId>org.codehaus.jackson</groupId>
>       <artifactId>jackson-mapper-asl</artifactId>
>       <version>1.4.2</version>
>       <scope>compile</scope>
>     </dependency>
> It's 1.4.2, not 1.7.3. 
> Below is my ivy.xml.  It's the same as what I used for 0.9.0 but I changed the pig version to 0.10.0.
> <ivy-module version="2.0">
>     <info organisation="datafu" module="datafu"/>
>     <dependencies>
>         <dependency org="org.apache.pig" name="pig" rev="0.10.0"/>
>         <dependency org="it.unimi.dsi" name="fastutil" rev="6.3"/>
>         <dependency org="joda-time" name="joda-time" rev="1.6"/>
>         <dependency org="org.apache.commons" name="commons-math" rev="2.1"/>
>         <dependency org="commons-io" name="commons-io" rev="1.4"/>
>         <dependency org="org.apache.hadoop" name="hadoop-core" rev="0.20.2"/>
>         <dependency org="org.testng" name="testng" rev="6.2"/>
>         <dependency org="com.google.guava" name="guava" rev="r06" />
>           
>         <!-- needed for pigunit to work -->
>         <dependency org="log4j" name="log4j" rev="1.2.14" />
>         <dependency org="jline" name="jline" rev="0.9.94" />
>         <dependency org="org.antlr" name="antlr" rev="3.2" />
>     </dependencies>
> </ivy-module>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (PIG-2785) NoClassDefFoundError after upgrading to pig 0.10.0 from 0.9.0

Posted by "Santhosh Srinivasan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIG-2785?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13439218#comment-13439218 ] 

Santhosh Srinivasan commented on PIG-2785:
------------------------------------------

+1 Commit tests passed. I will commit it shortly
                
> NoClassDefFoundError after upgrading to pig 0.10.0 from 0.9.0
> -------------------------------------------------------------
>
>                 Key: PIG-2785
>                 URL: https://issues.apache.org/jira/browse/PIG-2785
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.10.0
>            Reporter: Matthew Hayes
>         Attachments: avro_version_fix.diff
>
>
> It appears that the versions in the pom for pig 0.10.0 are inconsistent with the versions specified in the ivy file used to build pig.  I am building a separate project, and I am getting pig and its dependencies using ivy.  
> Looking in ivy.xml in the pig 0.10.0 release:
>     <dependency org="org.apache.avro" name="avro" rev="${avro.version}"
>       conf="compile->default;checkstyle->master"/>
> ...
>     <dependency org="org.codehaus.jackson" name="jackson-mapper-asl" rev="${jackson.version}"
>       conf="compile->master"/>
>     <dependency org="org.codehaus.jackson" name="jackson-core-asl" rev="${jackson.version}"
>       conf="compile->master"/>
> Where avro.version is avro.version=1.5.3 and jackson.version=1.7.3.
> However, in the pom.xml for pig 0.10.0:
>       <groupId>org.apache.hadoop</groupId>
>       <artifactId>avro</artifactId>
>       <version>1.3.2</version>
> And when I look up the pom for org.apache.hadoop's avro 1.3.2 in the central repository, I see a version of jackson inconsistent with what pig was compiled with:
>     <dependency>
>       <groupId>org.codehaus.jackson</groupId>
>       <artifactId>jackson-mapper-asl</artifactId>
>       <version>1.4.2</version>
>       <scope>compile</scope>
>     </dependency>
> It's 1.4.2, not 1.7.3. 
> Below is my ivy.xml.  It's the same as what I used for 0.9.0 but I changed the pig version to 0.10.0.
> <ivy-module version="2.0">
>     <info organisation="datafu" module="datafu"/>
>     <dependencies>
>         <dependency org="org.apache.pig" name="pig" rev="0.10.0"/>
>         <dependency org="it.unimi.dsi" name="fastutil" rev="6.3"/>
>         <dependency org="joda-time" name="joda-time" rev="1.6"/>
>         <dependency org="org.apache.commons" name="commons-math" rev="2.1"/>
>         <dependency org="commons-io" name="commons-io" rev="1.4"/>
>         <dependency org="org.apache.hadoop" name="hadoop-core" rev="0.20.2"/>
>         <dependency org="org.testng" name="testng" rev="6.2"/>
>         <dependency org="com.google.guava" name="guava" rev="r06" />
>           
>         <!-- needed for pigunit to work -->
>         <dependency org="log4j" name="log4j" rev="1.2.14" />
>         <dependency org="jline" name="jline" rev="0.9.94" />
>         <dependency org="org.antlr" name="antlr" rev="3.2" />
>     </dependencies>
> </ivy-module>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (PIG-2785) NoClassDefFoundError after upgrading to pig 0.10.0 from 0.9.0

Posted by "Matthew Hayes (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-2785?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matthew Hayes updated PIG-2785:
-------------------------------

    Attachment: avro_version_fix.diff

Fixed the avro version.  I tested it using the DataFu project.  When built against this version of the POM all DataFu unit tests pass.
                
> NoClassDefFoundError after upgrading to pig 0.10.0 from 0.9.0
> -------------------------------------------------------------
>
>                 Key: PIG-2785
>                 URL: https://issues.apache.org/jira/browse/PIG-2785
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.10.0
>            Reporter: Matthew Hayes
>         Attachments: avro_version_fix.diff
>
>
> It appears that the versions in the pom for pig 0.10.0 are inconsistent with the versions specified in the ivy file used to build pig.  I am building a separate project, and I am getting pig and its dependencies using ivy.  
> Looking in ivy.xml in the pig 0.10.0 release:
>     <dependency org="org.apache.avro" name="avro" rev="${avro.version}"
>       conf="compile->default;checkstyle->master"/>
> ...
>     <dependency org="org.codehaus.jackson" name="jackson-mapper-asl" rev="${jackson.version}"
>       conf="compile->master"/>
>     <dependency org="org.codehaus.jackson" name="jackson-core-asl" rev="${jackson.version}"
>       conf="compile->master"/>
> Where avro.version is avro.version=1.5.3 and jackson.version=1.7.3.
> However, in the pom.xml for pig 0.10.0:
>       <groupId>org.apache.hadoop</groupId>
>       <artifactId>avro</artifactId>
>       <version>1.3.2</version>
> And when I look up the pom for org.apache.hadoop's avro 1.3.2 in the central repository, I see a version of jackson inconsistent with what pig was compiled with:
>     <dependency>
>       <groupId>org.codehaus.jackson</groupId>
>       <artifactId>jackson-mapper-asl</artifactId>
>       <version>1.4.2</version>
>       <scope>compile</scope>
>     </dependency>
> It's 1.4.2, not 1.7.3. 
> Below is my ivy.xml.  It's the same as what I used for 0.9.0 but I changed the pig version to 0.10.0.
> <ivy-module version="2.0">
>     <info organisation="datafu" module="datafu"/>
>     <dependencies>
>         <dependency org="org.apache.pig" name="pig" rev="0.10.0"/>
>         <dependency org="it.unimi.dsi" name="fastutil" rev="6.3"/>
>         <dependency org="joda-time" name="joda-time" rev="1.6"/>
>         <dependency org="org.apache.commons" name="commons-math" rev="2.1"/>
>         <dependency org="commons-io" name="commons-io" rev="1.4"/>
>         <dependency org="org.apache.hadoop" name="hadoop-core" rev="0.20.2"/>
>         <dependency org="org.testng" name="testng" rev="6.2"/>
>         <dependency org="com.google.guava" name="guava" rev="r06" />
>           
>         <!-- needed for pigunit to work -->
>         <dependency org="log4j" name="log4j" rev="1.2.14" />
>         <dependency org="jline" name="jline" rev="0.9.94" />
>         <dependency org="org.antlr" name="antlr" rev="3.2" />
>     </dependencies>
> </ivy-module>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (PIG-2785) NoClassDefFoundError after upgrading to pig 0.10.0 from 0.9.0

Posted by "Daniel Dai (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIG-2785?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13408280#comment-13408280 ] 

Daniel Dai commented on PIG-2785:
---------------------------------

Thanks, Matthew. I can see the problem. You are welcome to submit a patch.
                
> NoClassDefFoundError after upgrading to pig 0.10.0 from 0.9.0
> -------------------------------------------------------------
>
>                 Key: PIG-2785
>                 URL: https://issues.apache.org/jira/browse/PIG-2785
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.10.0
>            Reporter: Matthew Hayes
>
> It appears that the versions in the pom for pig 0.10.0 are inconsistent with the versions specified in the ivy file used to build pig.  I am building a separate project, and I am getting pig and its dependencies using ivy.  
> Looking in ivy.xml in the pig 0.10.0 release:
>     <dependency org="org.apache.avro" name="avro" rev="${avro.version}"
>       conf="compile->default;checkstyle->master"/>
> ...
>     <dependency org="org.codehaus.jackson" name="jackson-mapper-asl" rev="${jackson.version}"
>       conf="compile->master"/>
>     <dependency org="org.codehaus.jackson" name="jackson-core-asl" rev="${jackson.version}"
>       conf="compile->master"/>
> Where avro.version is avro.version=1.5.3 and jackson.version=1.7.3.
> However, in the pom.xml for pig 0.10.0:
>       <groupId>org.apache.hadoop</groupId>
>       <artifactId>avro</artifactId>
>       <version>1.3.2</version>
> And when I look up the pom for org.apache.hadoop's avro 1.3.2 in the central repository, I see a version of jackson inconsistent with what pig was compiled with:
>     <dependency>
>       <groupId>org.codehaus.jackson</groupId>
>       <artifactId>jackson-mapper-asl</artifactId>
>       <version>1.4.2</version>
>       <scope>compile</scope>
>     </dependency>
> It's 1.4.2, not 1.7.3. 
> Below is my ivy.xml.  It's the same as what I used for 0.9.0 but I changed the pig version to 0.10.0.
> <ivy-module version="2.0">
>     <info organisation="datafu" module="datafu"/>
>     <dependencies>
>         <dependency org="org.apache.pig" name="pig" rev="0.10.0"/>
>         <dependency org="it.unimi.dsi" name="fastutil" rev="6.3"/>
>         <dependency org="joda-time" name="joda-time" rev="1.6"/>
>         <dependency org="org.apache.commons" name="commons-math" rev="2.1"/>
>         <dependency org="commons-io" name="commons-io" rev="1.4"/>
>         <dependency org="org.apache.hadoop" name="hadoop-core" rev="0.20.2"/>
>         <dependency org="org.testng" name="testng" rev="6.2"/>
>         <dependency org="com.google.guava" name="guava" rev="r06" />
>           
>         <!-- needed for pigunit to work -->
>         <dependency org="log4j" name="log4j" rev="1.2.14" />
>         <dependency org="jline" name="jline" rev="0.9.94" />
>         <dependency org="org.antlr" name="antlr" rev="3.2" />
>     </dependencies>
> </ivy-module>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (PIG-2785) NoClassDefFoundError after upgrading to pig 0.10.0 from 0.9.0

Posted by "Alan Gates (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-2785?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alan Gates reassigned PIG-2785:
-------------------------------

    Assignee: Matthew Hayes
    
> NoClassDefFoundError after upgrading to pig 0.10.0 from 0.9.0
> -------------------------------------------------------------
>
>                 Key: PIG-2785
>                 URL: https://issues.apache.org/jira/browse/PIG-2785
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.10.0
>            Reporter: Matthew Hayes
>            Assignee: Matthew Hayes
>             Fix For: 0.11
>
>         Attachments: avro_version_fix.diff
>
>
> It appears that the versions in the pom for pig 0.10.0 are inconsistent with the versions specified in the ivy file used to build pig.  I am building a separate project, and I am getting pig and its dependencies using ivy.  
> Looking in ivy.xml in the pig 0.10.0 release:
>     <dependency org="org.apache.avro" name="avro" rev="${avro.version}"
>       conf="compile->default;checkstyle->master"/>
> ...
>     <dependency org="org.codehaus.jackson" name="jackson-mapper-asl" rev="${jackson.version}"
>       conf="compile->master"/>
>     <dependency org="org.codehaus.jackson" name="jackson-core-asl" rev="${jackson.version}"
>       conf="compile->master"/>
> Where avro.version is avro.version=1.5.3 and jackson.version=1.7.3.
> However, in the pom.xml for pig 0.10.0:
>       <groupId>org.apache.hadoop</groupId>
>       <artifactId>avro</artifactId>
>       <version>1.3.2</version>
> And when I look up the pom for org.apache.hadoop's avro 1.3.2 in the central repository, I see a version of jackson inconsistent with what pig was compiled with:
>     <dependency>
>       <groupId>org.codehaus.jackson</groupId>
>       <artifactId>jackson-mapper-asl</artifactId>
>       <version>1.4.2</version>
>       <scope>compile</scope>
>     </dependency>
> It's 1.4.2, not 1.7.3. 
> Below is my ivy.xml.  It's the same as what I used for 0.9.0 but I changed the pig version to 0.10.0.
> <ivy-module version="2.0">
>     <info organisation="datafu" module="datafu"/>
>     <dependencies>
>         <dependency org="org.apache.pig" name="pig" rev="0.10.0"/>
>         <dependency org="it.unimi.dsi" name="fastutil" rev="6.3"/>
>         <dependency org="joda-time" name="joda-time" rev="1.6"/>
>         <dependency org="org.apache.commons" name="commons-math" rev="2.1"/>
>         <dependency org="commons-io" name="commons-io" rev="1.4"/>
>         <dependency org="org.apache.hadoop" name="hadoop-core" rev="0.20.2"/>
>         <dependency org="org.testng" name="testng" rev="6.2"/>
>         <dependency org="com.google.guava" name="guava" rev="r06" />
>           
>         <!-- needed for pigunit to work -->
>         <dependency org="log4j" name="log4j" rev="1.2.14" />
>         <dependency org="jline" name="jline" rev="0.9.94" />
>         <dependency org="org.antlr" name="antlr" rev="3.2" />
>     </dependencies>
> </ivy-module>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (PIG-2785) NoClassDefFoundError after upgrading to pig 0.10.0 from 0.9.0

Posted by "Santhosh Srinivasan (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-2785?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Santhosh Srinivasan updated PIG-2785:
-------------------------------------

    Fix Version/s: 0.11
    
> NoClassDefFoundError after upgrading to pig 0.10.0 from 0.9.0
> -------------------------------------------------------------
>
>                 Key: PIG-2785
>                 URL: https://issues.apache.org/jira/browse/PIG-2785
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.10.0
>            Reporter: Matthew Hayes
>             Fix For: 0.11
>
>         Attachments: avro_version_fix.diff
>
>
> It appears that the versions in the pom for pig 0.10.0 are inconsistent with the versions specified in the ivy file used to build pig.  I am building a separate project, and I am getting pig and its dependencies using ivy.  
> Looking in ivy.xml in the pig 0.10.0 release:
>     <dependency org="org.apache.avro" name="avro" rev="${avro.version}"
>       conf="compile->default;checkstyle->master"/>
> ...
>     <dependency org="org.codehaus.jackson" name="jackson-mapper-asl" rev="${jackson.version}"
>       conf="compile->master"/>
>     <dependency org="org.codehaus.jackson" name="jackson-core-asl" rev="${jackson.version}"
>       conf="compile->master"/>
> Where avro.version is avro.version=1.5.3 and jackson.version=1.7.3.
> However, in the pom.xml for pig 0.10.0:
>       <groupId>org.apache.hadoop</groupId>
>       <artifactId>avro</artifactId>
>       <version>1.3.2</version>
> And when I look up the pom for org.apache.hadoop's avro 1.3.2 in the central repository, I see a version of jackson inconsistent with what pig was compiled with:
>     <dependency>
>       <groupId>org.codehaus.jackson</groupId>
>       <artifactId>jackson-mapper-asl</artifactId>
>       <version>1.4.2</version>
>       <scope>compile</scope>
>     </dependency>
> It's 1.4.2, not 1.7.3. 
> Below is my ivy.xml.  It's the same as what I used for 0.9.0 but I changed the pig version to 0.10.0.
> <ivy-module version="2.0">
>     <info organisation="datafu" module="datafu"/>
>     <dependencies>
>         <dependency org="org.apache.pig" name="pig" rev="0.10.0"/>
>         <dependency org="it.unimi.dsi" name="fastutil" rev="6.3"/>
>         <dependency org="joda-time" name="joda-time" rev="1.6"/>
>         <dependency org="org.apache.commons" name="commons-math" rev="2.1"/>
>         <dependency org="commons-io" name="commons-io" rev="1.4"/>
>         <dependency org="org.apache.hadoop" name="hadoop-core" rev="0.20.2"/>
>         <dependency org="org.testng" name="testng" rev="6.2"/>
>         <dependency org="com.google.guava" name="guava" rev="r06" />
>           
>         <!-- needed for pigunit to work -->
>         <dependency org="log4j" name="log4j" rev="1.2.14" />
>         <dependency org="jline" name="jline" rev="0.9.94" />
>         <dependency org="org.antlr" name="antlr" rev="3.2" />
>     </dependencies>
> </ivy-module>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (PIG-2785) NoClassDefFoundError after upgrading to pig 0.10.0 from 0.9.0

Posted by "Santhosh Srinivasan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIG-2785?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13439220#comment-13439220 ] 

Santhosh Srinivasan commented on PIG-2785:
------------------------------------------

Committed. Thanks Matthew.
                
> NoClassDefFoundError after upgrading to pig 0.10.0 from 0.9.0
> -------------------------------------------------------------
>
>                 Key: PIG-2785
>                 URL: https://issues.apache.org/jira/browse/PIG-2785
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.10.0
>            Reporter: Matthew Hayes
>             Fix For: 0.11
>
>         Attachments: avro_version_fix.diff
>
>
> It appears that the versions in the pom for pig 0.10.0 are inconsistent with the versions specified in the ivy file used to build pig.  I am building a separate project, and I am getting pig and its dependencies using ivy.  
> Looking in ivy.xml in the pig 0.10.0 release:
>     <dependency org="org.apache.avro" name="avro" rev="${avro.version}"
>       conf="compile->default;checkstyle->master"/>
> ...
>     <dependency org="org.codehaus.jackson" name="jackson-mapper-asl" rev="${jackson.version}"
>       conf="compile->master"/>
>     <dependency org="org.codehaus.jackson" name="jackson-core-asl" rev="${jackson.version}"
>       conf="compile->master"/>
> Where avro.version is avro.version=1.5.3 and jackson.version=1.7.3.
> However, in the pom.xml for pig 0.10.0:
>       <groupId>org.apache.hadoop</groupId>
>       <artifactId>avro</artifactId>
>       <version>1.3.2</version>
> And when I look up the pom for org.apache.hadoop's avro 1.3.2 in the central repository, I see a version of jackson inconsistent with what pig was compiled with:
>     <dependency>
>       <groupId>org.codehaus.jackson</groupId>
>       <artifactId>jackson-mapper-asl</artifactId>
>       <version>1.4.2</version>
>       <scope>compile</scope>
>     </dependency>
> It's 1.4.2, not 1.7.3. 
> Below is my ivy.xml.  It's the same as what I used for 0.9.0 but I changed the pig version to 0.10.0.
> <ivy-module version="2.0">
>     <info organisation="datafu" module="datafu"/>
>     <dependencies>
>         <dependency org="org.apache.pig" name="pig" rev="0.10.0"/>
>         <dependency org="it.unimi.dsi" name="fastutil" rev="6.3"/>
>         <dependency org="joda-time" name="joda-time" rev="1.6"/>
>         <dependency org="org.apache.commons" name="commons-math" rev="2.1"/>
>         <dependency org="commons-io" name="commons-io" rev="1.4"/>
>         <dependency org="org.apache.hadoop" name="hadoop-core" rev="0.20.2"/>
>         <dependency org="org.testng" name="testng" rev="6.2"/>
>         <dependency org="com.google.guava" name="guava" rev="r06" />
>           
>         <!-- needed for pigunit to work -->
>         <dependency org="log4j" name="log4j" rev="1.2.14" />
>         <dependency org="jline" name="jline" rev="0.9.94" />
>         <dependency org="org.antlr" name="antlr" rev="3.2" />
>     </dependencies>
> </ivy-module>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira