Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Pig >> mail # user >> NoClassDefFoundError after upgrading to pig 0.10.0 from 0.9.0

Copy link to this message
Re: NoClassDefFoundError after upgrading to pig 0.10.0 from 0.9.0
I am not sure what you mean -- ivy pulls down 1.4.2 but pig builds from 1.7.3? Pig gets its jars from ivy, so it must be building from whatever ivy pulls down. Sounds like there is some packaging problem, but I am not sure how to interpret what you said.

On Jun 8, 2012, at 12:07 PM, Matthew Hayes <[EMAIL PROTECTED]> wrote:

> I'm using ivy to download dependencies for pig, but after updating the version to 0.10.0 I am getting errors in my unit tests:
>   [testng] java.lang.NoClassDefFoundError: org/codehaus/jackson/map/util/LRUMap
>   [testng] at org.apache.pig.builtin.JsonMetadata.<init>(JsonMetadata.java:75)
>   [testng] at org.apache.pig.builtin.PigStorage.getSchema(PigStorage.java:466)
>   [testng] at org.apache.pig.newplan.logical.relational.LOLoad.getSchemaFromMetaData(LOLoad.java:151)
>   [testng] at org.apache.pig.newplan.logical.relational.LOLoad.getSchema(LOLoad.java:110)
>   ...etc.
> It looks like the dependency on jackson-mapper-asl is coming from avro.  Looking in jackson-mapper-asl-1.7.3.jar I see the LRUMap class.  However using ivy to pull down dependencies I get jackson-mapper-asl-1.4.2.jar, not jackson-mapper-asl-1.7.3.jar.  When I build pig 0.10.0 from source it uses 1.7.3.
> Is there an inconsistency between the avro version pig is compiled against and the avro version specified in the pom?
> Thanks,
> Matt