You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-user@hadoop.apache.org by Massimo Schiavon <ms...@volunia.com> on 2010/10/18 15:59:07 UTC
Custom logging settings for task execution
I want to set the hadoop.root.logger variable for task executions but
seems that this setting is hardcoded at line 352 of TaskRunner.java
[...]
vargs.add("-Dhadoop.root.logger=INFO,TLA");
[...]
there is a way to add a custom appender?
I need to do this because I want to pipe the log stream to syslog ant
then to Flume
Thanks
Massimo
Re: Custom logging settings for task execution
Posted by Massimo Schiavon <ms...@volunia.com>.
On 22/11/2010 23:52, sonal wrote:
> hi Massimo,
>
> Massimo Schiavon<ms...@...> writes:
>
>> I want to set the hadoop.root.logger variable for task executions but
>> seems that this setting is hardcoded at line 352 of TaskRunner.java
>>
>> [...]
>>
>> vargs.add("-Dhadoop.root.logger=INFO,TLA");
>>
>> [...]
>>
>> there is a way to add a custom appender?
>>
>> I need to do this because I want to pipe the log stream to syslog ant
>> then to Flume
>>
>
> did you figure out a way to do this? i've been trying to find a solution to the
> same problem,
>
> thanks!
> sonal
>
>
>
The only way I found is changing the source code and rebuild. Maybe
adding a variable to the Configuration object with a default value of
"INFO,TLA".
The line could be something like:
vargs.add("-Dhadoop.root.logger=" +
conf.get("hadoop.tasktracker.root.logger", "INFO,TLA"));
bye
Massimo
PS
I haven't tested this solution so I'm not sure it works
Re: Custom logging settings for task execution
Posted by sonal <so...@themandelbrotproject.com>.
hi Massimo,
Massimo Schiavon <ms...@...> writes:
>
> I want to set the hadoop.root.logger variable for task executions but
> seems that this setting is hardcoded at line 352 of TaskRunner.java
>
> [...]
>
> vargs.add("-Dhadoop.root.logger=INFO,TLA");
>
> [...]
>
> there is a way to add a custom appender?
>
> I need to do this because I want to pipe the log stream to syslog ant
> then to Flume
>
did you figure out a way to do this? i've been trying to find a solution to the
same problem,
thanks!
sonal