Return-Path: X-Original-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E3F6D10B80 for ; Mon, 16 Dec 2013 14:57:40 +0000 (UTC) Received: (qmail 77934 invoked by uid 500); 16 Dec 2013 14:57:32 -0000 Delivered-To: apmail-hadoop-mapreduce-user-archive@hadoop.apache.org Received: (qmail 77708 invoked by uid 500); 16 Dec 2013 14:57:26 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 77697 invoked by uid 99); 16 Dec 2013 14:57:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Dec 2013 14:57:25 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jayunit100@gmail.com designates 209.85.219.52 as permitted sender) Received: from [209.85.219.52] (HELO mail-oa0-f52.google.com) (209.85.219.52) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Dec 2013 14:57:21 +0000 Received: by mail-oa0-f52.google.com with SMTP id h16so5082669oag.11 for ; Mon, 16 Dec 2013 06:57:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=UxCRPvyfEUGk/7hdL4Pq9oCVcBP/+FiHHMPCwgdbxcw=; b=o1Oq5vvGPGLO4h1Uk+BBcAjav3N0JBrpf0EeKpkN7pXPI9Ma8FYk3jeXRTH8D3FSbO 24lvc+L2QPySy3KkUZ4eGIkGT5R+SK7Mr2doJ9GUdsHaU9lT7tGZN6zo9J+pKIMu4+gq fD3oqqOEAe2kjr/1peH3DZp1qqnDCHRreZl75thbf4HrPDoSmi06usPze0RUsnftUamu igPWT+lVVtqpT/4fiReHciRkhHV8pnHbZeFZB6Y1IN1Afm7n+HVTqzEuVf5N0QaPYvl1 Z7PQMcEnuegO/U3CyJWB6LuyzvaPleBW+z89mUNMOtKnfE5HdHOEpyoB7Z9sxdNx32NG IFrg== MIME-Version: 1.0 X-Received: by 10.182.78.68 with SMTP id z4mr11957568obw.29.1387205820859; Mon, 16 Dec 2013 06:57:00 -0800 (PST) Received: by 10.76.74.70 with HTTP; Mon, 16 Dec 2013 06:57:00 -0800 (PST) In-Reply-To: References: Date: Mon, 16 Dec 2013 09:57:00 -0500 Message-ID: Subject: Re: Debug Hadoop Junit Test in Eclipse From: Jay Vyas To: "common-user@hadoop.apache.org" Content-Type: multipart/alternative; boundary=047d7b2e4d522ecb6d04eda80699 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b2e4d522ecb6d04eda80699 Content-Type: text/plain; charset=ISO-8859-1 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: http://jayunit100.blogspot.com/2013/07/deep-dive-into-hadoop-with-bigtop-and.html 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 wrote: > Hi, > > 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. -- Jay Vyas http://jayunit100.blogspot.com --047d7b2e4d522ecb6d04eda80699 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Excellent question.=A0 its not trivial to debug a distribu= ted app in eclipse, but it is totally doable using javaagents .=A0=A0 We= 9;ve written it up here:

http://jayunit100.blogsp= ot.com/2013/07/deep-dive-into-hadoop-with-bigtop-and.html

FYI cc Brad childs (https://gith= ub.com/childsb) at red hat has helped me with the tutorial, he might ha= ve 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 <karim.awara@kaust.ed= u.sa> wrote:
Hi,

I want to trace how a file upload (-put) happens in hadoop. So Im junit te= sting 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 thr= ead while the rest are working. I have changed the breakpoint property to s= uspend VM, but still same problem.


How can I trace calls made by datanode/namenode when run= ning TestDFSShell.java Junit test through eclipse?

I am u= sing hadoop 2.2.0

--
Best Regards,
Karim Ahmed Awara


This message and its content= s, 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 sy= stem. Any unauthorized use or distribution is prohibited. Please consider t= he environment before printing this email.



--
Jay Vyas
http://jayunit100.blogspot.com
--047d7b2e4d522ecb6d04eda80699--