Friday, July 25, 2014

How to debug HDFS source in Eclipse

1.To debug hdfs locally, open the hadoop-env.sh file located in /etc/hadoop, inside your hadoop distribution.
2. Add the following line.
     export HADOOP_OPTS="-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5000"

3. Set the debug point from Eclipse to remote java debugging under port 5000, and you are good to go.

No comments:

Post a Comment