在hadoop-env.sh里
HADOOP_OPTS=”$HADOOP_OPTS -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=8999”

​http://stackoverflow.com/questions/9915808/how-to-debug-hadoop-mapreduce-jobs-from-eclipse​