Pig, mail # user - Re: Unit test for Pig UDF using DistributedCache - 2014-02-10, 15:31
Solr & Elasticsearch trainings in New York & San Francisco [more info][hide]
 Search Hadoop and all its subprojects:

Switch to Threaded View
Copy link to this message
Re: Unit test for Pig UDF using DistributedCache
One approach is to separate your code from the pig wrapper. That way you
only need to unit test your business logic.
An example would be something like

public class wrapperUdf extends EvalFunc {
  public Integer exec() {

  public List<String> getCachedFiles {

public class foo {
  public Integer exec() {
You can write unit test just again foo and leave UDF testing to
component/functional testing.


On 10 Feb 2014, at 3:08, [EMAIL PROTECTED] wrote:
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