Re: PigTest with pig.import.search.path

2014-04-10 Thread Jerry Lam
Hi Lorand,

Thanks for giving me a hand.
I just tried. It doesn't work. I'm using Pig 0.10.1 that might be the
reason why...

Regards,

Jerry


On Wed, Apr 9, 2014 at 3:32 PM, Lorand Bendig  wrote:

> what about setting it via:
> PigTest.getPigServer().getPigContext().getProperties(
> ).setProperty("pig.import.search.path", "/path/to/script");
>
> --Lorand
>
>
> On 04/09/2014 07:15 PM, Jerry Lam wrote:
>
>> Hi Pig users,
>>
>> anyone knows how to set pig.import.search.path in junit test for PigTest?
>>
>> I have trouble to get it to run the PigTest because in my script, it
>> imports other scripts.
>>
>> Any help is appreciated,
>>
>> Jerry
>>
>>
>


Re: Pass user configurations/arguments to UDF

2014-04-10 Thread Abhishek Agarwal
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.thong...@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