Eclipse里如何debug跟踪MapReduce程序到hadoop源码里?


我本地一台机子起了


 4504 ResourceManager 
4066 DataNode 
4761 NodeManager 
5068 JobHistoryServer 
4357 SecondaryNameNode 
3833 NameNode 
5127 Jps

在hadoop-env.sh:设置了 HADOOP_OPTS="$HADOOP_OPTS -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=9000"
然后导入编译好的hadoop全部源码并各处打了很多断点,
然后 bin/hadoop jar path/to/hadoop-mapreduce-examples-2.2.0.jar wordcount /wordcount /output
然后开始在Eclipse里远程调试,可是在最后只有这个断点生效了。。。


 Thread [main] (Suspended (breakpoint at line 342 in JobSubmitter)) 
JobSubmitter.submitJobInternal(Job, Cluster) line: 342 
...
RunJar.main(String[]) line: 212

hadoop java yarn mapreduce debug

啊啊爸爸好厉害 10 years, 3 months ago

Your Answer