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 # user >> Unit test for Pig UDF using DistributedCache


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() {
   foo.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.

David

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