hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harsh J <ha...@cloudera.com>
Subject Re: where to put log4j.properties for logging out of MR job?
Date Mon, 19 May 2014 09:17:29 GMT
Task JVMs in MR run with their own TaskLogAppender-configured
task-log4j.properties file. This is not overridable or configurable

Your best approach at the moment would be to configure your custom
appender in code at the beginning of your program.

On Sun, May 18, 2014 at 9:27 PM, Sebastian G├Ąde <s116102@hft-leipzig.de> wrote:
> Hi,
> I'd like to log events within my MR application using Flume writing to a
> central log file. I've followed
> http://flume.apache.org/releases/content/1.4.0/FlumeUserGuide.html#log4j-appender
> putting the stuff into Hadoop's log4j.properties and copying it to Hadoop's
> conf directory on all nodes.
> However, my in-application events are only logged to stdout (I can see them
> using the YARN webapp) but not to Flume. Although I thought Hadoop's conf
> directory is added to classpath, it does not seem to work for me.
> Could you please tell me where I should put the log4j.properties?
> Cheers
> Seb.

Harsh J

View raw message