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 >> register udf


Hi Dan,
to use UDFs you just need to put the relative class files in a jar, and
register it in the pig script.
No need to import or anything else.

Cheers,
--
Gianmarco

On Mon, Nov 14, 2011 at 23:40, Dan Yi <[EMAIL PROTECTED]> wrote:

> hi, all
>
> i have a big projects, one of my project have all the pig scripts, and
> other one have all the java file as udfs for the pig scripts. i use
> eclipse/maven to
> manage all the projects, just wonder how i can use the udfs java file
> under other project for my pig scripts? i can only register them as .jar
> file in pig script?
> can i just point to the location/project where those udf java files
> directly like 'import' statement in java? much thanks!
>
> Dan
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