You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pig.apache.org by Patcharee Thongtra <Pa...@uni.no> on 2014/04/10 08:32:17 UTC
Pass user configurations/arguments to UDF
Hi,
I implemented a custom load function. How to pass some user settings to
this function?
Any help is appreciated,
Patcharee
Re: Pass user configurations/arguments to UDF
Posted by Abhishek Agarwal <ab...@gmail.com>.
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 <
Patcharee.Thongtra@uni.no> wrote:
> Hi,
>
> I implemented a custom load function. How to pass some user settings to
> this function?
>
> Any help is appreciated,
>
> Patcharee
>
--
Regards,
Abhishek Agarwal