Use ?-Dmaven.surefire.debug option and attach to port 5005 (default), more info can be found here :
http://maven.apache.org/surefire/maven-surefire-plugin/examples/debugging.html? Thanks Hari ________________________________ From: Suraj Nayak <snay...@gmail.com> Sent: Friday, May 08, 2015 12:35 PM To: user@hive.apache.org Subject: Help needed in debugging HCatLoader for Pig Hi All, I have set up hive source code as per HiveDeveloperFAQ#HiveDeveloperFAQ-HowdoIimportintoEclipse<https://cwiki.apache.org/confluence/display/Hive/HiveDeveloperFAQ#HiveDeveloperFAQ-HowdoIimportintoEclipse?> documentation and successfully imported the project into Eclipse. Now,If I want to debug the hive-hcatalog-pig-adapter/org.apache.hive.hcatalog.pig.HCatLoader class, I tried to run /hive-hcatalog-pig-adapter/org.apache.hive.hcatalog.pig.TestHCatLoader by enabling few debug points. Am getting following error when I Right-Click on TestHCatLoader and Select JUnit Test: FAILED: NullPointerException Non-local session path expected to be non-null 15/05/08 12:24:37 ERROR ql.Driver: FAILED: NullPointerException Non-local session path expected to be non-null java.lang.NullPointerException: Non-local session path expected to be non-null While being in eclipse am able to run the goal "test -Dtest=org.apache.hive.hcatalog.pig.TestHCatLoader -Phadoop-2" from itests directory successfully. But the debug point is never caught during the testing. How can I line by line debug any class such as this HCatLoader loader class from eclipse? Any help is appreciated! -- Thanks Suraj Nayak M