You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Harsh J (Commented) (JIRA)" <ji...@apache.org> on 2012/02/06 05:59:59 UTC

[jira] [Commented] (HADOOP-8024) Debugging Hadoop daemons in Eclipse / Netbeans debugger

    [ https://issues.apache.org/jira/browse/HADOOP-8024?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13201035#comment-13201035 ] 

Harsh J commented on HADOOP-8024:
---------------------------------

Hi,

Yes, getting daemons to run inside of an IDE is a matter of having the env. properly set.

Will you be filing a doc patch or contributing a wiki page dedicated to this?

IIRC you could also do this via 'Run Configuration' integration (We had that for 0.21/0.22 I think?), or other better techniques, so that the dev does not have to set the runners up himself.
                
> Debugging Hadoop daemons in Eclipse / Netbeans debugger
> -------------------------------------------------------
>
>                 Key: HADOOP-8024
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8024
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: test
>    Affects Versions: 0.20.203.0
>         Environment: Windows/Linux; Eclipse and Netbeans
>            Reporter: Ambud Sharma
>            Priority: Minor
>              Labels: documentation
>   Original Estimate: 0h
>  Remaining Estimate: 0h
>
> To debug Hadoop daemons for prototyping; I discovered the use of Eclipse and Netbeans for the purpose.
> To perform this import the source code of Hadoop as a Java Project (you will have to do some refactoring to make sure the imports and packages are correct)
> instead of an ant project or importing an existing project.
> Please make sure the apache-commons libraries are in classpath and you should now be able to launch the particular daemon from their respective packages inside the debugger.
> I find it particularly useful to use the eclipse and netbeans standard debugger to perform any code increments as its fairly simple to perform stacktrace and point to the exact code error.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira