user592796
user592796

Reputation: 81

Hadoop enable logging

I am trying to work with hadoop built from source in a single cluster mode.I checked out 0.22.0-alpha-1.I am facing few problems with logging. How do i enable debug logs.

I tried adding

log4j.logger.org.apache.hadoop.mapred.JobTracker=DEBUG
log4j.logger.org.apache.hadoop.mapred.TaskTracker=DEBUG 

in log4j.properties.

But it doesn't seem to work.Can some one help me with enabling debug logs.Also i would like to know if there are any other logs i can enable apart from Jobtracker and tasktracker and the corresponding lines to add in log4j.properties file.

Also i tried adding few LOG.info() statements in the code and compiled them and ran hadoop jobs over them. But i am not able to get these log statements printed out at the console like some other logs that appear on the console. Please let me know if i am missing something.

Thanks

Upvotes: 2

Views: 10239

Answers (1)

darioo
darioo

Reputation: 47183

I'd suggest trying

log4j.logger.org.apache.hadoop = DEBUG

for debug logging inside of every Hadoop class.

If this doesn't work, then you haven't configured log4j properly.

Upvotes: 8

Related Questions