hadoop-hdfs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Devaraj k <devara...@huawei.com>
Subject RE: Debugging YARN AM
Date Tue, 18 Jun 2013 06:38:19 GMT
Hi Curtis,

     "yarn.app.mapreduce.am.command-opts" configuration is specific to MRAppMaster. It is
not applicable for DistributedShell AM.

If you want to dump out debug information then you can make use of the debug option of DistributedShell
application. If you want to debug by connecting remotely, you need to update the DS application
code accordingly.

Devaraj K

From: Curtis Ullerich [mailto:curtisullerich@gmail.com]
Sent: 18 June 2013 08:19
To: user@hadoop.apache.org
Subject: Debugging YARN AM

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)?



View raw message