You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pig.apache.org by Vincent Barat <vi...@ubikod.com> on 2010/01/05 14:16:32 UTC
Tracing from an UDF
Hello,
Is there a (standard) way to output traces from within a custom PIG
UDF function (in order to see these traces inside the set of regular
traces ?)
Thanks
Re: Tracing from an UDF
Posted by Vincent Barat <vi...@ubikod.com>.
Thanks Alan for the explanation: fair enough !
Le 05/01/10 19:32, Alan Gates a écrit :
> In MR mode, the output of your UDFs will turn up in the logs of the map
> and reduce tasks, not in the pig log. There is currently no channel for
> pig to send log messages back from the cluster to your machine to put
> the messages in the pig log.
>
> Alan.
>
> On Jan 5, 2010, at 7:02 AM, Vincent Barat wrote:
>
>> I've tested this, it works in local mode but it doesn't works when
>> your UDF code is executed in a separate process (in cluster mode).
>>
>> Le 05/01/10 15:49, Jeff Zhang a écrit :
>>> You can use log4j to print the exception message and you can see the
>>> message
>>> on the job tracker web ui.
>>>
>>>
>>>
>>> On Tue, Jan 5, 2010 at 5:16 AM, Vincent
>>> Barat<vi...@ubikod.com>wrote:
>>>
>>>> Hello,
>>>>
>>>> Is there a (standard) way to output traces from within a custom PIG UDF
>>>> function (in order to see these traces inside the set of regular
>>>> traces ?)
>>>>
>>>> Thanks
>>>>
>>>>
>>>
>>>
>
>
>
Re: Tracing from an UDF
Posted by Alan Gates <ga...@yahoo-inc.com>.
In MR mode, the output of your UDFs will turn up in the logs of the
map and reduce tasks, not in the pig log. There is currently no
channel for pig to send log messages back from the cluster to your
machine to put the messages in the pig log.
Alan.
On Jan 5, 2010, at 7:02 AM, Vincent Barat wrote:
> I've tested this, it works in local mode but it doesn't works when
> your UDF code is executed in a separate process (in cluster mode).
>
> Le 05/01/10 15:49, Jeff Zhang a écrit :
>> You can use log4j to print the exception message and you can see
>> the message
>> on the job tracker web ui.
>>
>>
>>
>> On Tue, Jan 5, 2010 at 5:16 AM, Vincent Barat<vincent.barat@ubikod.com
>> >wrote:
>>
>>> Hello,
>>>
>>> Is there a (standard) way to output traces from within a custom
>>> PIG UDF
>>> function (in order to see these traces inside the set of regular
>>> traces ?)
>>>
>>> Thanks
>>>
>>>
>>
>>
Re: Tracing from an UDF
Posted by Vincent Barat <vi...@ubikod.com>.
I've tested this, it works in local mode but it doesn't works when
your UDF code is executed in a separate process (in cluster mode).
Le 05/01/10 15:49, Jeff Zhang a écrit :
> You can use log4j to print the exception message and you can see the message
> on the job tracker web ui.
>
>
>
> On Tue, Jan 5, 2010 at 5:16 AM, Vincent Barat<vi...@ubikod.com>wrote:
>
>> Hello,
>>
>> Is there a (standard) way to output traces from within a custom PIG UDF
>> function (in order to see these traces inside the set of regular traces ?)
>>
>> Thanks
>>
>>
>
>
Re: Tracing from an UDF
Posted by Jeff Zhang <zj...@gmail.com>.
You can use log4j to print the exception message and you can see the message
on the job tracker web ui.
On Tue, Jan 5, 2010 at 5:16 AM, Vincent Barat <vi...@ubikod.com>wrote:
> Hello,
>
> Is there a (standard) way to output traces from within a custom PIG UDF
> function (in order to see these traces inside the set of regular traces ?)
>
> Thanks
>
>
--
Best Regards
Jeff Zhang