Return-Path: X-Original-To: apmail-hadoop-common-user-archive@www.apache.org Delivered-To: apmail-hadoop-common-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 89A7911C54 for ; Sun, 3 Aug 2014 02:02:08 +0000 (UTC) Received: (qmail 81700 invoked by uid 500); 3 Aug 2014 02:02:03 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 81584 invoked by uid 500); 3 Aug 2014 02:02:03 -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 81574 invoked by uid 99); 3 Aug 2014 02:02:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Aug 2014 02:02:02 +0000 X-ASF-Spam-Status: No, hits=1.8 required=5.0 tests=HTML_FONT_FACE_BAD,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_FILL_THIS_FORM_SHORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of y.z.elshater@gmail.com designates 209.85.217.179 as permitted sender) Received: from [209.85.217.179] (HELO mail-lb0-f179.google.com) (209.85.217.179) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Aug 2014 02:01:58 +0000 Received: by mail-lb0-f179.google.com with SMTP id v6so4293675lbi.10 for ; Sat, 02 Aug 2014 19:01:35 -0700 (PDT) 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=MQwbrRVEN68+zq8rLycLMAJJvgNgSnyPDRCxQ7GwOX0=; b=IMQlGaYuU/dAQOUofqb4wmnCGYt2nVD1H910H3+W8rd3ThlHufnpT44TiFAjN6iNcG g1xfdc8Gt7zm9dehgtK7dtMz7vFFHXKC0AMVyCSKeuyrlSklVxTGR7I1pAoNfaUdes1S yFL8z1mj4nn0DPKJTCFHI0/65d7eeafAmSUTmTuTpusJ2IrEexZjXQO+iV16qMM5d7AY pqDG0f28aaVuKWYjpL2c0bLSGd+FOtvkskmzw3R56qTerVjzWZ/uSOkxyZa2bmZPAWzP p0HpW5vXj5C5S8OaCvkGpkK1xAVLmsq6MFJsJMq2PISq8B2AS2DjYVTwEgVpTZkfIYHG q5FA== MIME-Version: 1.0 X-Received: by 10.152.29.230 with SMTP id n6mr15463672lah.29.1407031295658; Sat, 02 Aug 2014 19:01:35 -0700 (PDT) Received: by 10.112.1.7 with HTTP; Sat, 2 Aug 2014 19:01:35 -0700 (PDT) In-Reply-To: References: Date: Sat, 2 Aug 2014 22:01:35 -0400 Message-ID: Subject: Re: ResourceManager debugging From: Yehia Elshater To: user@hadoop.apache.org Content-Type: multipart/alternative; boundary=089e0158c3ac90cf5e04ffb0000b X-Virus-Checked: Checked by ClamAV on apache.org --089e0158c3ac90cf5e04ffb0000b Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Naga, Thanks a lot for your help. I have submitted multiple MapReduce jobs, the debugger is attached successfully to eclipse and I put a breakpoint in org.apache.hadoop.yarn.server.resourcemanager.ResourceManager, but, eclipse debugger still waits without any interruption. However, I put another breakpoint in another class (for example RMAppAttemptContainerAllocatedEvent), the debugger reached the code. Do you have any idea why ResourceManager code was not reachable by the debugger? Thanks On 2 August 2014 08:04, Naganarasimha G R (Naga) < garlanaganarasimha@huawei.com> wrote: > Hi Yehia , > > I set *"YARN_RESOURCEMANAGER_OPTS" *in *" folder>/bin/yarn" *and i was able to debug. > > > > YARN_RESOURCEMANAGER_OPTS=3D"$YARN_RESOURCEMANAGER_OPTS -Xdebug > -Xrunjdwp:server=3Dy,transport=3Ddt_socket,address=3D7089,suspend=3Dn" > > > > Regards, > > Naga > > > > Huawei Technologies Co., Ltd. > Phone: > Fax: > Mobile: +91 9980040283 > Email: naganarasimhagr@huawei.com > Huawei Technologies Co., Ltd. > Bantian, Longgang District,Shenzhen 518129, P.R.China > http://www.huawei.com > > =C2=A1 > This e-mail and its attachments contain confidential information from > HUAWEI, which is intended only for the person or entity whose address is > listed above. Any use of the information contained herein in any way > (including, but not limited to, total or partial disclosure, reproduction= , > or dissemination) by persons other than the intended recipient(s) is > prohibited. If you receive this e-mail in error, please notify the sender > by phone or email immediately and delete it! > ------------------------------ > *From:* Yehia Elshater [y.z.elshater@gmail.com] > *Sent:* Saturday, August 02, 2014 09:22 > *To:* user@hadoop.apache.org > *Subject:* ResourceManager debugging > > Hi, > > I am wondering how to remote debugging Yarn's RM using eclipse. I tried > to adding the debugging options "-Xdebug > -Xrunjdwp:transport=3Ddt_socket,server=3Dy,suspend=3Dy,address=3D1337" to > YARN_OPTS but it did not work. Any suggestions ? > > Thanks > > --089e0158c3ac90cf5e04ffb0000b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Naga,

Thanks a lot for your help. I = have submitted multiple MapReduce jobs, the debugger is attached successful= ly to eclipse and I put a breakpoint in org.apache.hadoop.yarn.server.resou= rcemanager.ResourceManager, but, eclipse debugger still waits without any i= nterruption. However, I put another breakpoint in another class (for exampl= e=C2=A0RMAppAttemptContainerAllocatedEvent), the debugger reached the code.= Do you have any idea why ResourceManager code was not reachable by the deb= ugger?

Thanks


On 2 August 2014 08:04, Naganarasimha G R (Naga) <= span dir=3D"ltr"><garlanaganarasimha@huawei.com> wrote:

Hi Yehia ,

=C2=A0=C2=A0=C2=A0=C2=A0I set =C2=A0"YARN_RESOURCEMANAGER_O= PTS" in "<installation folder>/bin/yarn"= =C2=A0 and i was able to debug.

=C2=A0

=C2=A0YARN_RESOURCEMANAGER_OPTS=3D"$YARN_RESOURCEMANAGER_OPTS -Xdeb= ug -Xrunjdwp:server=3Dy,transport=3Ddt_socket,address=3D7089,suspend=3Dn&qu= ot;

=C2=A0


Fro= m: Yehia Elshater [y.z.elshater@gmail.com]
Sent: Saturday, August 02, 2014 09:22
To: user= @hadoop.apache.org
Subject: ResourceManager debugging

Hi,

I am wondering how to remote debugging Yarn's RM using eclipse. I = tried to adding the debugging options "-Xdebug
-Xrunjdwp:transp= ort=3Ddt_socket,server=3Dy,suspend=3Dy,address=3D1337" to YARN_= OPTS but it did not work. Any suggestions ?

Thanks


--089e0158c3ac90cf5e04ffb0000b--