Excellent question. its not trivial to debug a distributed app in eclipse,
but it is totally doable using javaagents . We've written it up here:
FYI cc Brad childs (https://github.com/childsb) at red hat has helped me
with the tutorial, he might have some extra advice also (cc'd on this
email), I've written up one way to do this using the bigtop VMs here.
On Mon, Dec 16, 2013 at 8:07 AM, Karim Awara <[EMAIL PROTECTED]>wrote:
> I want to trace how a file upload (-put) happens in hadoop. So Im junit
> testing TestDFSShell.java. When I try to debug the test, It fails due to
> test timed out exception. I believe this is because I am trying to stop one
> thread while the rest are working. I have changed the breakpoint property
> to suspend VM, but still same problem.
> How can I trace calls made by datanode/namenode when running
> TestDFSShell.java Junit test through eclipse?
> I am using hadoop 2.2.0
> Best Regards,
> Karim Ahmed Awara
> This message and its contents, including attachments are intended solely
> for the original recipient. If you are not the intended recipient or have
> received this message in error, please notify me immediately and delete
> this message from your computer system. Any unauthorized use or
> distribution is prohibited. Please consider the environment before printing
> this email.