Return-Path: X-Original-To: apmail-hadoop-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-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 A8F6610557 for ; Tue, 18 Jun 2013 02:57:05 +0000 (UTC) Received: (qmail 22445 invoked by uid 500); 18 Jun 2013 02:56:59 -0000 Delivered-To: apmail-hadoop-user-archive@hadoop.apache.org Received: (qmail 22157 invoked by uid 500); 18 Jun 2013 02:56:59 -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 Delivered-To: moderator for user@hadoop.apache.org Received: (qmail 16053 invoked by uid 99); 18 Jun 2013 02:50:14 -0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of curtisullerich@gmail.com designates 209.85.223.170 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=CLcw+rnIqY6wy0Kw2ly4+1vnEiX1/R2Xv17mL9tDr+g=; b=t0h6JlpjepJHs4PPaUBeDMUley1GJ1ZT67s6eqVb+a/AQGFjHmaWND3sbOn1T5atHY 6Y3fQOyaOtjs6waUACOh/xroZNmRyISd9pWxt8uw2ZVkOsbmNIoPpf/vbX72Mon9GDUw zFTePfDY3pNt6PJVJ3eiscuLagXUBPU6KBYvvuuFkbm3kapoJFTBROnZFEA7tOYoPK5h hKInXx4rcH6fxycq8jDWABymGcCOevW55aeWWl0ruUAfy8rBTa8X7miZ6YY0BMYvZRLR GYuuXRFhH8zTzH0yZtMaxF34kRgKuzoFCVwkNmZBnsGou5BuWVxhz+bQTdz5+AhtSc5M aCLg== X-Received: by 10.50.21.70 with SMTP id t6mr2509712ige.36.1371523789447; Mon, 17 Jun 2013 19:49:49 -0700 (PDT) MIME-Version: 1.0 From: Curtis Ullerich Date: Mon, 17 Jun 2013 19:49:09 -0700 Message-ID: Subject: Debugging YARN AM To: user@hadoop.apache.org Content-Type: multipart/alternative; boundary=047d7b5d8e49456b7a04df64c42f X-Virus-Checked: Checked by ClamAV on apache.org --047d7b5d8e49456b7a04df64c42f Content-Type: text/plain; charset=ISO-8859-1 Hi all, I can successfully debug the MapReduce ApplicationMaster in standalone mode by launching the pi estimator example with this command: hadoop jar hadoop-mapreduce-examples-3.0.0-SNAPSHOT.jar pi "-Dyarn.app.mapreduce.am.command-opts=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000" 10 10 and then attaching a debugger to port 8000 using Eclipse. This doesn't work with the DistributedShell example, presumably because it's not configurable with yarn.app.mapreduce.am.command as it's not MapReduce. Looking in yarn-default.xml, I don't see an equivalent parameter. For learning purposes, how can I debug the DistributedShell example (and other AMs)? Thanks! Curtis --047d7b5d8e49456b7a04df64c42f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi all,

I can successfully debug the MapReduce Applicatio= nMaster in standalone mode by launching the pi estimator example with this = command:

hadoop jar hadoop-mapreduce-e= xamples-3.0.0-SNAPSHOT.jar pi "-Dyarn.app.mapreduce.am.command-opts=3D= -Xdebug -Xrunjdwp:transport=3Ddt_socket,server=3Dy,suspend=3Dy,address=3D80= 00" 10 10

and then attaching a debugger to port= 8000 using Eclipse. This doesn't work with the DistributedShell exampl= e, presumably because it's not configurable with yarn.app.mapreduce.am.= command as it's not MapReduce. Looking in yarn-default.xml, I don't= see an equivalent parameter. For learning purposes, how can I debug the Di= stributedShell example (and other AMs)?

Thanks!

Curtis
--047d7b5d8e49456b7a04df64c42f--