hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "W.P. McNeill" <bill...@gmail.com>
Subject Re: How to change logging level for an individual job
Date Fri, 15 Apr 2011 18:23:24 GMT
I was running into the same problem with Log4J and Hadoop. Even Log4J's
package granularity wasn't what I wanted because I wanted to run one
instance of MyJob at INFO level and another instance of MyJob at DEBUG level
on the same cluster.

I ended up letting the caller specify the logging level via a configuration
parameter.  The setup() function then reads this parameter and does
something like the following:

      Level level = Level.toLevel(configuration.get("custom.loglevel",

On Wed, Apr 13, 2011 at 1:52 PM, David Rosenstrauch <darose@darose.net>wrote:

> Is it possible to change the logging level for an individual job?  (As
> opposed to the cluster as a whole.)  E.g., is there some key that I can set
> on the job's configuration object that would allow me to bump up the logging
> from info to debug just for that particular job?
> Thanks,
> DR

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message