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 >> Pass user configurations/arguments to UDF


Copy link to this message
-
Re: Pass user configurations/arguments to UDF
You can get the job configuration in your UDF through this function.
JobConf conf = UDFContext.getInstance().getJobConf();

Any job parameters that you pass in the job, should be available in conf.
On Thu, Apr 10, 2014 at 12:02 PM, Patcharee Thongtra <
[EMAIL PROTECTED]> wrote:
Regards,
Abhishek Agarwal

 
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