问题描述
- 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
解决方案
http://www.zhihu.com/question/33713813/answer/57231795
时间: 2024-11-02 21:12:02