Reputation: 1743
I'm using AWS Elastic MapReduce and I would like to be able to set the logging level. For example, I would like for log.isDebugEnabled() to return true. A bit of googling led me to find this blog article:
which basically suggests writing a shell script to copy and overwrite the local log4j.properties file. This seems like a complicated approach. I would prefer a simpler way of setting the debug level. Is there any way?
Upvotes: 2
Views: 1340
Reputation: 12010
There are 2 other ways:
hadoop daemonlog -setlevel
command one can set the logging level for a given Hadoop daemon and classname.http://<host:port>/logLevel
but both these ways only set the log levels for the timespan till the daemons are running, as soon as they are restarted, they will pick-up the one's in log4j.properties.
Read more here.
Upvotes: 1