Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Pig >> mail # dev >> Unit test classpath trouble


Copy link to this message
-
Re: Unit test classpath trouble
Hi, Andrew:
Does something like "-Dhadoopversion=23" help ? eg. ant clean test
-Dhadoopversion=23 -Dtest.junit.output.format=xml

Johnny
On Fri, May 10, 2013 at 3:39 AM, Andrew Purtell <[EMAIL PROTECTED]> wrote:

> Please pardon the basic question. I'm building Pig 0.11.2-SNAPSHOT against
> Hadoop 2.0.4. 'ant package' and full cluster tests work fine, but I'm not
> having much luck with running the unit tests, 'ant test-core' or 'ant
> test'. The problem looks to be a MR app classpath issue.
>
> Sometimes: java.lang.NoClassDefFoundError:
> org/apache/hadoop/yarn/client/YarnClientImpl
>
> Sometimes: java.lang.NoClassDefFoundError:
> org/apache/hadoop/mapred/ResourceMgrDelegate
>
> A few Google searches have turned up no useful pointers. Maybe there is
> something simple I am missing? How do you set up for running unit tests on
> your dev boxes?
>
> --
> Best regards,
>
>    - Andy
>
> Problems worthy of attack prove their worth by hitting back. - Piet Hein
> (via Tom White)
>
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB