I am trying to debug map-reduce programs, and find it's quite a headache. I tried this, yet not working, because I am using eclipse hdt plugin, and don't use hadoop jar XXX
command. So I tried to debug with logging.
I tried both
public static final Log LOG = LogFactory.getLog(Reduce.class);
LOG.debug("XXX");
and
System.out.println("XXX");
and according to this post on stackoverflow, it is supposed that I should find the log at $HADOOP_HOME/logs/userlogs/XXX
, but I find the folder is empty. I assume it's probably because the hadoop I'm using is 2.x, yet the suggested answer uses 0.x. It's also probable that I didn't setup hadoop completely.
I also tried the accepted answer in that post. However I cannot visit http://localhost:50030/jobtracker.jsp
. Don't know why neither.
Any suggestions? Besides how to debug with log, easy solutions with eclipse-hdt are also appreciated.