debug hadoop for read

bin/hdfs最后面的

exec "$JAVA" $JAVA_HEAP_MAX $HADOOP_OPTS -classpath "$CLASSPATH" $CLASS "$@"  

改成

exec "$JAVA" -Xdebug -Xrunjdwp:transport=dt_socket,address=9090,server=y,suspend=y $JAVA_HEAP_MAX $HADOOP_OPTS -classpath "$CLASSPATH" $CLASS "$@" 

改法供参考


然后分别启动nn和dn时就会停在那,等远程eclipse连


(待续)

你可能感兴趣的:(debug hadoop for read)