You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Joel Alexandre <jo...@gmail.com> on 2013/06/22 01:41:31 UTC

Logging for MR Job

hi,

i'm running some Hbase MR jobs through the bin/hadoop jar command line.

How can i change the log level for those specific execution without
changing hbase/conf/log4j.properties ?

I'm my jar there is a log4j.properties file, but it is being ignored.

Thanks,
Joel

Re: Logging for MR Job

Posted by Stack <st...@duboce.net>.
On Fri, Jun 21, 2013 at 4:41 PM, Joel Alexandre <jo...@gmail.com>wrote:
...

>
> I'm my jar there is a log4j.properties file, but it is being ignored.
>


Your log4j.properties is in the right location inside the job jar?  (
http://stackoverflow.com/questions/9081625/override-log4j-properties-in-hadoop
).

St.Ack

St.Ack

Re: Logging for MR Job

Posted by Suraj Varma <sv...@gmail.com>.
Did you try passing in the log level via  generic options?
E.g. I can switch the log level of a running job via:
hadoop jar hadoop-mapreduce-examples.jar pi *-D
mapred.map.child.log.level=DEBUG *10 10
hadoop jar hadoop-mapreduce-examples.jar pi *-D
mapred.map.child.log.level=INFO* 10 10

--Suraj



On Fri, Jun 21, 2013 at 4:41 PM, Joel Alexandre <jo...@gmail.com>wrote:

> hi,
>
> i'm running some Hbase MR jobs through the bin/hadoop jar command line.
>
> How can i change the log level for those specific execution without
> changing hbase/conf/log4j.properties ?
>
> I'm my jar there is a log4j.properties file, but it is being ignored.
>
> Thanks,
> Joel
>

Re: Logging for MR Job

Posted by Jean-Marc Spaggiari <je...@spaggiari.org>.
Worst case you can modify the log level directly into your code?

JM

2013/6/21 Joel Alexandre <jo...@gmail.com>:
> hi,
>
> i'm running some Hbase MR jobs through the bin/hadoop jar command line.
>
> How can i change the log level for those specific execution without
> changing hbase/conf/log4j.properties ?
>
> I'm my jar there is a log4j.properties file, but it is being ignored.
>
> Thanks,
> Joel